diff options
author | Jonas Schnelli <dev@jonasschnelli.ch> | 2016-11-18 10:26:38 +0100 |
---|---|---|
committer | Jonas Schnelli <dev@jonasschnelli.ch> | 2016-11-18 11:09:29 +0100 |
commit | 76af4eb876814a916dd4f26cf71faa20bdc54f2d (patch) | |
tree | e4af8512e43dea534e8311401b468e95e289ddb4 /src/qt/coincontroldialog.h | |
parent | 9346f8429957e356d21c665bab59fe45bcf1f74e (diff) |
[Qt] fix coincontrol sort issue
Diffstat (limited to 'src/qt/coincontroldialog.h')
-rw-r--r-- | src/qt/coincontroldialog.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/qt/coincontroldialog.h b/src/qt/coincontroldialog.h index 7d73421e3a..960e92f79b 100644 --- a/src/qt/coincontroldialog.h +++ b/src/qt/coincontroldialog.h @@ -28,6 +28,17 @@ namespace Ui { #define ASYMP_UTF8 "\xE2\x89\x88" +class CCoinControlWidgetItem : public QTreeWidgetItem +{ +public: + CCoinControlWidgetItem(QTreeWidget *parent, int type = Type) : QTreeWidgetItem(parent, type) {} + CCoinControlWidgetItem(int type = Type) : QTreeWidgetItem(type) {} + CCoinControlWidgetItem(QTreeWidgetItem *parent, int type = Type) : QTreeWidgetItem(parent, type) {} + + bool operator<(const QTreeWidgetItem &other) const; +}; + + class CoinControlDialog : public QDialog { Q_OBJECT @@ -76,6 +87,7 @@ private: COLUMN_AMOUNT_INT64, COLUMN_DATE_INT64 }; + friend class CCoinControlWidgetItem; // some columns have a hidden column containing the value used for sorting int getMappedColumn(int column, bool fVisibleColumn = true) |