Fix detailed transaction information on doubleclick
This commit is contained in:
parent
64f125f353
commit
c60015a260
@ -84,6 +84,8 @@ TransactionView::TransactionView(QWidget *parent) :
|
|||||||
connect(typeWidget, SIGNAL(activated(int)), this, SLOT(chooseType(int)));
|
connect(typeWidget, SIGNAL(activated(int)), this, SLOT(chooseType(int)));
|
||||||
connect(addressWidget, SIGNAL(textChanged(const QString&)), this, SLOT(changedPrefix(const QString&)));
|
connect(addressWidget, SIGNAL(textChanged(const QString&)), this, SLOT(changedPrefix(const QString&)));
|
||||||
connect(amountWidget, SIGNAL(textChanged(const QString&)), this, SLOT(changedAmount(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)
|
void TransactionView::setModel(TransactionTableModel *model)
|
||||||
|
@ -10,6 +10,7 @@ QT_BEGIN_NAMESPACE
|
|||||||
class QTableView;
|
class QTableView;
|
||||||
class QComboBox;
|
class QComboBox;
|
||||||
class QLineEdit;
|
class QLineEdit;
|
||||||
|
class QModelIndex;
|
||||||
QT_END_NAMESPACE
|
QT_END_NAMESPACE
|
||||||
|
|
||||||
class TransactionView : public QWidget
|
class TransactionView : public QWidget
|
||||||
@ -41,6 +42,7 @@ private:
|
|||||||
QLineEdit *amountWidget;
|
QLineEdit *amountWidget;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
|
void doubleClicked(const QModelIndex&);
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void chooseDate(int idx);
|
void chooseDate(int idx);
|
||||||
|
Loading…
Reference in New Issue
Block a user