![]() |
Bitcoin Core 31.1.0
P2P Digital Currency
|
UI model for the transaction table of a wallet. More...
#include <transactiontablemodel.h>
Public Types | |
| enum | ColumnIndex { Status = 0 , Date = 1 , Type = 2 , ToAddress = 3 , Amount = 4 } |
| enum | RoleIndex { TypeRole = Qt::UserRole , DateRole , LongDescriptionRole , AddressRole , LabelRole , AmountRole , TxHashRole , TxHexRole , TxPlainTextRole , ConfirmedRole , FormattedAmountRole , StatusRole , RawDecorationRole } |
| Roles to get specific information from a transaction row. More... | |
Public Slots | |
| void | updateTransaction (const QString &hash, int status, bool showTransaction) |
| void | updateConfirmations () |
| void | updateDisplayUnit () |
| void | updateAmountColumnTitle () |
| Updates the column title to "Amount (DisplayUnit)" and emits headerDataChanged() signal for table headers to react. | |
| void | setProcessingQueuedTransactions (bool value) |
Public Member Functions | |
| TransactionTableModel (const PlatformStyle *platformStyle, WalletModel *parent=nullptr) | |
| ~TransactionTableModel () | |
| int | rowCount (const QModelIndex &parent) const override |
| int | columnCount (const QModelIndex &parent) const override |
| QVariant | data (const QModelIndex &index, int role) const override |
| QVariant | headerData (int section, Qt::Orientation orientation, int role) const override |
| QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const override |
| bool | processingQueuedTransactions () const |
Private Member Functions | |
| void | subscribeToCoreSignals () |
| void | unsubscribeFromCoreSignals () |
| QString | lookupAddress (const std::string &address, bool tooltip) const |
| QVariant | addressColor (const TransactionRecord *wtx) const |
| QString | formatTxStatus (const TransactionRecord *wtx) const |
| QString | formatTxDate (const TransactionRecord *wtx) const |
| QString | formatTxType (const TransactionRecord *wtx) const |
| QString | formatTxToAddress (const TransactionRecord *wtx, bool tooltip) const |
| QString | formatTxAmount (const TransactionRecord *wtx, bool showUnconfirmed=true, BitcoinUnits::SeparatorStyle separators=BitcoinUnits::SeparatorStyle::STANDARD) const |
| QString | formatTooltip (const TransactionRecord *rec) const |
| QVariant | txStatusDecoration (const TransactionRecord *wtx) const |
| QVariant | txAddressDecoration (const TransactionRecord *wtx) const |
Private Attributes | |
| WalletModel * | walletModel |
| std::unique_ptr< interfaces::Handler > | m_handler_transaction_changed |
| std::unique_ptr< interfaces::Handler > | m_handler_show_progress |
| QStringList | columns |
| TransactionTablePriv * | priv |
| bool | fProcessingQueuedTransactions {false} |
| const PlatformStyle * | platformStyle |
Friends | |
| class | TransactionTablePriv |
UI model for the transaction table of a wallet.
Definition at line 26 of file transactiontablemodel.h.
| Enumerator | |
|---|---|
| Status | |
| Date | |
| Type | |
| ToAddress | |
| Amount | |
Definition at line 34 of file transactiontablemodel.h.
Roles to get specific information from a transaction row.
These are independent of column.
Definition at line 45 of file transactiontablemodel.h.
|
explicit |
| TransactionTableModel::~TransactionTableModel | ( | ) |
|
private |
Definition at line 420 of file transactiontablemodel.cpp.
|
override |
Definition at line 301 of file transactiontablemodel.cpp.
|
override |
Definition at line 496 of file transactiontablemodel.cpp.
|
private |
Definition at line 485 of file transactiontablemodel.cpp.
|
private |
Definition at line 439 of file transactiontablemodel.cpp.
|
private |
Definition at line 341 of file transactiontablemodel.cpp.
|
private |
Definition at line 309 of file transactiontablemodel.cpp.
|
private |
Definition at line 403 of file transactiontablemodel.cpp.
|
private |
Definition at line 368 of file transactiontablemodel.cpp.
|
override |
Definition at line 627 of file transactiontablemodel.cpp.
|
override |
Definition at line 658 of file transactiontablemodel.cpp.
|
private |
Definition at line 353 of file transactiontablemodel.cpp.
|
inline |
|
override |
Definition at line 293 of file transactiontablemodel.cpp.
|
inlineslot |
Definition at line 112 of file transactiontablemodel.h.
|
private |
Definition at line 712 of file transactiontablemodel.cpp.
|
private |
Definition at line 386 of file transactiontablemodel.cpp.
|
private |
Definition at line 452 of file transactiontablemodel.cpp.
|
private |
Definition at line 724 of file transactiontablemodel.cpp.
|
slot |
Updates the column title to "Amount (DisplayUnit)" and emits headerDataChanged() signal for table headers to react.
Definition at line 270 of file transactiontablemodel.cpp.
|
slot |
|
slot |
Definition at line 669 of file transactiontablemodel.cpp.
|
slot |
|
friend |
Definition at line 114 of file transactiontablemodel.h.
|
private |
Definition at line 85 of file transactiontablemodel.h.
|
private |
Definition at line 87 of file transactiontablemodel.h.
|
private |
Definition at line 84 of file transactiontablemodel.h.
|
private |
Definition at line 83 of file transactiontablemodel.h.
|
private |
Definition at line 88 of file transactiontablemodel.h.
|
private |
Definition at line 86 of file transactiontablemodel.h.
|
private |
Definition at line 82 of file transactiontablemodel.h.