aboutsummaryrefslogtreecommitdiff
path: root/src/qt/guiutil.h
diff options
context:
space:
mode:
authorPhilip Kaufmann <phil.kaufmann@t-online.de>2015-06-01 15:32:25 +0200
committerPhilip Kaufmann <phil.kaufmann@t-online.de>2015-06-02 09:34:35 +0200
commit51fc672f59f390ce4ddf05448b63bdf11e80563b (patch)
tree3fda7483dbac74aa403a123e4f13124e7947048d /src/qt/guiutil.h
parentf00b62391b9317bf4c83676520fede1fb4027c43 (diff)
[Qt] disconnect peers from peers tab via context menu
- It is now allowed to disconnect peers from peers tab via right-click context menu. Peers are not permanently banned!
Diffstat (limited to 'src/qt/guiutil.h')
-rw-r--r--src/qt/guiutil.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/qt/guiutil.h b/src/qt/guiutil.h
index bcbb540c37..55df64a256 100644
--- a/src/qt/guiutil.h
+++ b/src/qt/guiutil.h
@@ -64,6 +64,14 @@ namespace GUIUtil
*/
void copyEntryData(QAbstractItemView *view, int column, int role=Qt::EditRole);
+ /** Return a field of the currently selected entry as a QString. Does nothing if nothing
+ is selected.
+ @param[in] column Data column to extract from the model
+ @param[in] role Data role to extract from the model
+ @see TransactionView::copyLabel, TransactionView::copyAmount, TransactionView::copyAddress
+ */
+ QString getEntryData(QAbstractItemView *view, int column, int role);
+
void setClipboard(const QString& str);
/** Get save filename, mimics QFileDialog::getSaveFileName, except that it appends a default suffix
@@ -205,7 +213,7 @@ namespace GUIUtil
#else
typedef QProgressBar ProgressBar;
#endif
-
+
} // namespace GUIUtil
#endif // BITCOIN_QT_GUIUTIL_H