diff options
| author | Cozz Lovan <[email protected]> | 2014-08-10 02:26:04 +0200 |
|---|---|---|
| committer | Cozz Lovan <[email protected]> | 2014-08-11 21:38:36 +0200 |
| commit | 1c5f0af0fd8b5630470d471d8319a7c979aa2587 (patch) | |
| tree | 4eb6b12ba606e034284fb65ad7263515bf227d01 /src/qt/transactiontablemodel.h | |
| parent | Add boolean HaveWatchonly and signal NotifyWatchonlyChanged (diff) | |
| download | discoin-1c5f0af0fd8b5630470d471d8319a7c979aa2587.tar.xz discoin-1c5f0af0fd8b5630470d471d8319a7c979aa2587.zip | |
[Qt] Add column Watch-only to transactions list
Diffstat (limited to 'src/qt/transactiontablemodel.h')
| -rw-r--r-- | src/qt/transactiontablemodel.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/qt/transactiontablemodel.h b/src/qt/transactiontablemodel.h index 2124d3dd1..413f3f9bf 100644 --- a/src/qt/transactiontablemodel.h +++ b/src/qt/transactiontablemodel.h @@ -28,10 +28,11 @@ public: enum ColumnIndex { Status = 0, - Date = 1, - Type = 2, - ToAddress = 3, - Amount = 4 + Watchonly = 1, + Date = 2, + Type = 3, + ToAddress = 4, + Amount = 5 }; /** Roles to get specific information from a transaction row. @@ -42,6 +43,10 @@ public: TypeRole = Qt::UserRole, /** Date and time this transaction was created */ DateRole, + /** Watch-only boolean */ + WatchonlyRole, + /** Watch-only icon */ + WatchonlyDecorationRole, /** Long description (HTML format) */ LongDescriptionRole, /** Address of transaction */ @@ -83,6 +88,7 @@ private: QString formatTxAmount(const TransactionRecord *wtx, bool showUnconfirmed=true, BitcoinUnits::SeparatorStyle separators=BitcoinUnits::separatorStandard) const; QString formatTooltip(const TransactionRecord *rec) const; QVariant txStatusDecoration(const TransactionRecord *wtx) const; + QVariant txWatchonlyDecoration(const TransactionRecord *wtx) const; QVariant txAddressDecoration(const TransactionRecord *wtx) const; public slots: |