aboutsummaryrefslogtreecommitdiff
path: root/src/qt/transactiontablemodel.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2011-07-07 14:27:16 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2011-07-07 14:27:16 +0200
commitfbaee7a8533b23d846ee16837320f709c4e83d47 (patch)
treef867d31077177c79d27a2c475fb19b566c5010bf /src/qt/transactiontablemodel.h
parentd52a0f3bca2c8df8360308b062185d803e34f0d9 (diff)
Export functionality for transaction list
Diffstat (limited to 'src/qt/transactiontablemodel.h')
-rw-r--r--src/qt/transactiontablemodel.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/qt/transactiontablemodel.h b/src/qt/transactiontablemodel.h
index f75f414d4c..85bfeebcb3 100644
--- a/src/qt/transactiontablemodel.h
+++ b/src/qt/transactiontablemodel.h
@@ -25,6 +25,7 @@ public:
} ColumnIndex;
// Roles to get specific information from a transaction row
+ // These are independent of column
enum {
// Type of transaction
TypeRole = Qt::UserRole,
@@ -36,8 +37,14 @@ public:
AddressRole,
// Label of address related to transaction
LabelRole,
- // Absolute net amount of transaction
- AbsoluteAmountRole
+ // Absolute net amount of transaction, for filtering
+ AbsoluteAmountRole,
+ // Unique identifier
+ TxIDRole,
+ // Is transaction confirmed?
+ ConfirmedRole,
+ // Formatted amount, without brackets when unconfirmed
+ FormattedAmountRole
} RoleIndex;
int rowCount(const QModelIndex &parent) const;
@@ -57,7 +64,7 @@ private:
QVariant formatTxDate(const TransactionRecord *wtx) const;
QVariant formatTxType(const TransactionRecord *wtx) const;
QVariant formatTxToAddress(const TransactionRecord *wtx) const;
- QVariant formatTxAmount(const TransactionRecord *wtx) const;
+ QVariant formatTxAmount(const TransactionRecord *wtx, bool showUnconfirmed=true) const;
QVariant formatTxDecoration(const TransactionRecord *wtx) const;
private slots: