diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-06-28 21:41:56 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-06-29 23:09:55 +0200 |
commit | ceb6d4e11d8dab8a6778e20c433f6ed989c16221 (patch) | |
tree | 9c38a4254968ef15db820a6fac0bb8ff270957a0 /src/qt/transactiontablemodel.h | |
parent | 19a5975d5a024de37851524d72993f98dbdaff0c (diff) |
Implement filter row instead of tabs, allows for more expressive filters
Diffstat (limited to 'src/qt/transactiontablemodel.h')
-rw-r--r-- | src/qt/transactiontablemodel.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/qt/transactiontablemodel.h b/src/qt/transactiontablemodel.h index d19e1a3af6..c26acbc101 100644 --- a/src/qt/transactiontablemodel.h +++ b/src/qt/transactiontablemodel.h @@ -23,9 +23,20 @@ public: Amount = 4 } ColumnIndex; + // Roles to get specific information from a transaction row enum { + // Type of transaction TypeRole = Qt::UserRole, - LongDescriptionRole = Qt::UserRole+1 + // Date and time this transaction was created + DateRole, + // Long description (HTML format) + LongDescriptionRole, + // Address of transaction + AddressRole, + // Label of address related to transaction + LabelRole, + // Absolute net amount of transaction + AbsoluteAmountRole } RoleIndex; /* TypeRole values */ @@ -44,7 +55,8 @@ private: QStringList columns; TransactionTablePriv *priv; - std::string lookupAddress(const std::string &address) const; + QString labelForAddress(const std::string &address) const; + QString lookupAddress(const std::string &address) const; QVariant formatTxStatus(const TransactionRecord *wtx) const; QVariant formatTxDate(const TransactionRecord *wtx) const; QVariant formatTxType(const TransactionRecord *wtx) const; |