aboutsummaryrefslogtreecommitdiff
path: root/src/qt/transactionview.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2011-07-08 22:27:36 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2011-07-08 22:27:36 +0200
commit51d7cc07f10209ac12bd5286391e3c8b095abd34 (patch)
treeb874383fb3c423b3dbd06cbb6f51b0c9c329c8f5 /src/qt/transactionview.h
parent35105534e702d1a6db4fcac994869ab05266285b (diff)
Add context menu on transaction list: copy label, copy address, edit label, show details
Diffstat (limited to 'src/qt/transactionview.h')
-rw-r--r--src/qt/transactionview.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/qt/transactionview.h b/src/qt/transactionview.h
index 25212c976e..f02751a074 100644
--- a/src/qt/transactionview.h
+++ b/src/qt/transactionview.h
@@ -3,7 +3,7 @@
#include <QWidget>
-class TransactionTableModel;
+class WalletModel;
class TransactionFilterProxy;
QT_BEGIN_NAMESPACE
@@ -11,6 +11,7 @@ class QTableView;
class QComboBox;
class QLineEdit;
class QModelIndex;
+class QMenu;
QT_END_NAMESPACE
class TransactionView : public QWidget
@@ -19,7 +20,7 @@ class TransactionView : public QWidget
public:
explicit TransactionView(QWidget *parent = 0);
- void setModel(TransactionTableModel *model);
+ void setModel(WalletModel *model);
enum DateEnum
{
@@ -33,7 +34,7 @@ public:
};
private:
- TransactionTableModel *model;
+ WalletModel *model;
TransactionFilterProxy *transactionProxyModel;
QTableView *transactionView;
@@ -42,6 +43,11 @@ private:
QLineEdit *addressWidget;
QLineEdit *amountWidget;
+ QMenu *contextMenu;
+
+private slots:
+ void contextualMenu(const QPoint &);
+
signals:
void doubleClicked(const QModelIndex&);
@@ -51,6 +57,10 @@ public slots:
void changedPrefix(const QString &prefix);
void changedAmount(const QString &amount);
void exportClicked();
+ void showDetails();
+ void copyAddress();
+ void editLabel();
+ void copyLabel();
};