Fix detailed transaction information on doubleclick
authorWladimir J. van der Laan <laanwj@gmail.com>
Thu, 30 Jun 2011 19:34:00 +0000 (21:34 +0200)
committerWladimir J. van der Laan <laanwj@gmail.com>
Thu, 30 Jun 2011 19:34:00 +0000 (21:34 +0200)
src/qt/transactionview.cpp
src/qt/transactionview.h

index bf7d55d..6b314f4 100644 (file)
@@ -84,6 +84,8 @@ TransactionView::TransactionView(QWidget *parent) :
     connect(typeWidget, SIGNAL(activated(int)), this, SLOT(chooseType(int)));
     connect(addressWidget, SIGNAL(textChanged(const QString&)), this, SLOT(changedPrefix(const QString&)));
     connect(amountWidget, SIGNAL(textChanged(const QString&)), this, SLOT(changedAmount(const QString&)));
+
+    connect(view, SIGNAL(doubleClicked(const QModelIndex&)), this, SIGNAL(doubleClicked(const QModelIndex&)));
 }
 
 void TransactionView::setModel(TransactionTableModel *model)
index e75dcc2..96cdf97 100644 (file)
@@ -10,6 +10,7 @@ QT_BEGIN_NAMESPACE
 class QTableView;
 class QComboBox;
 class QLineEdit;
+class QModelIndex;
 QT_END_NAMESPACE
 
 class TransactionView : public QWidget
@@ -41,6 +42,7 @@ private:
     QLineEdit *amountWidget;
 
 signals:
+    void doubleClicked(const QModelIndex&);
 
 public slots:
     void chooseDate(int idx);