aboutsummaryrefslogtreecommitdiff
path: root/src/qt/guiutil.h
diff options
context:
space:
mode:
authorKristaps Kaupe <kristaps@blogiem.lv>2020-01-26 22:19:39 +0200
committerKristaps Kaupe <kristaps@blogiem.lv>2020-04-16 19:06:58 +0300
commit2b18fd2242a589988fbb68205dae4afa0b8b3d34 (patch)
tree381bfe874e204afe479d30873a06e94750132c36 /src/qt/guiutil.h
parentfe3b58b95955644f5b8e1cd9080d414378f14755 (diff)
Disable unavailable context menu items in transactions tab
Diffstat (limited to 'src/qt/guiutil.h')
-rw-r--r--src/qt/guiutil.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/qt/guiutil.h b/src/qt/guiutil.h
index 05e73cc5f0..30c98a31d6 100644
--- a/src/qt/guiutil.h
+++ b/src/qt/guiutil.h
@@ -68,14 +68,21 @@ namespace GUIUtil
@param[in] role Data role to extract from the model
@see TransactionView::copyLabel, TransactionView::copyAmount, TransactionView::copyAddress
*/
- void copyEntryData(QAbstractItemView *view, int column, int role=Qt::EditRole);
+ void copyEntryData(const 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
@see TransactionView::copyLabel, TransactionView::copyAmount, TransactionView::copyAddress
*/
- QList<QModelIndex> getEntryData(QAbstractItemView *view, int column);
+ QList<QModelIndex> getEntryData(const QAbstractItemView *view, int column);
+
+ /** Returns true if the specified field of the currently selected view entry is not empty.
+ @param[in] column Data column to extract from the model
+ @param[in] role Data role to extract from the model
+ @see TransactionView::contextualMenu
+ */
+ bool hasEntryData(const QAbstractItemView *view, int column, int role);
void setClipboard(const QString& str);