UI model for the transaction table of a wallet.
More...
#include <transactiontablemodel.h>
|
| enum | ColumnIndex {
Status = 0,
Watchonly = 1,
Date = 2,
Type = 3,
ToAddress = 4,
Amount = 5
} |
| |
| enum | RoleIndex {
TypeRole = Qt::UserRole,
DateRole,
WatchonlyRole,
WatchonlyDecorationRole,
LongDescriptionRole,
AddressRole,
LabelRole,
AmountRole,
TxIDRole,
TxHashRole,
TxHexRole,
TxPlainTextRole,
ConfirmedRole,
FormattedAmountRole,
StatusRole,
RawDecorationRole
} |
| | Roles to get specific information from a transaction row. More...
|
| |
UI model for the transaction table of a wallet.
Definition at line 22 of file transactiontablemodel.h.
Roles to get specific information from a transaction row.
These are independent of column.
| Enumerator |
|---|
| TypeRole |
Type of transaction.
|
| DateRole |
Date and time this transaction was created.
|
| WatchonlyRole |
Watch-only boolean.
|
| WatchonlyDecorationRole |
Watch-only icon.
|
| LongDescriptionRole |
Long description (HTML format)
|
| AddressRole |
Address of transaction.
|
| LabelRole |
Label of address related to transaction.
|
| AmountRole |
Net amount of transaction.
|
| TxIDRole |
Unique identifier.
|
| TxHashRole |
Transaction hash.
|
| TxHexRole |
Transaction data, hex-encoded.
|
| TxPlainTextRole |
Whole transaction as plain text.
|
| ConfirmedRole |
Is transaction confirmed?
|
| FormattedAmountRole |
Formatted amount, without brackets when unconfirmed.
|
| StatusRole |
Transaction status (TransactionRecord::Status)
|
| RawDecorationRole |
Unprocessed icon.
|
Definition at line 42 of file transactiontablemodel.h.
| TransactionTableModel::~TransactionTableModel |
( |
| ) |
|
| int TransactionTableModel::columnCount |
( |
const QModelIndex & |
parent | ) |
const |
| QVariant TransactionTableModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role |
|
) |
| const |
| QString TransactionTableModel::formatTxToAddress |
( |
const TransactionRecord * |
wtx, |
|
|
bool |
tooltip |
|
) |
| const |
|
private |
| QVariant TransactionTableModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role |
|
) |
| const |
| QModelIndex TransactionTableModel::index |
( |
int |
row, |
|
|
int |
column, |
|
|
const QModelIndex & |
parent = QModelIndex() |
|
) |
| const |
| QString TransactionTableModel::lookupAddress |
( |
const std::string & |
address, |
|
|
bool |
tooltip |
|
) |
| const |
|
private |
| bool TransactionTableModel::processingQueuedTransactions |
( |
| ) |
|
|
inline |
| int TransactionTableModel::rowCount |
( |
const QModelIndex & |
parent | ) |
const |
| void TransactionTableModel::setProcessingQueuedTransactions |
( |
bool |
value | ) |
|
|
inlineslot |
| void TransactionTableModel::subscribeToCoreSignals |
( |
| ) |
|
|
private |
| QVariant TransactionTableModel::txAddressDecoration |
( |
const TransactionRecord * |
wtx | ) |
const |
|
private |
| QVariant TransactionTableModel::txStatusDecoration |
( |
const TransactionRecord * |
wtx | ) |
const |
|
private |
| QVariant TransactionTableModel::txWatchonlyDecoration |
( |
const TransactionRecord * |
wtx | ) |
const |
|
private |
| void TransactionTableModel::unsubscribeFromCoreSignals |
( |
| ) |
|
|
private |
| void TransactionTableModel::updateAmountColumnTitle |
( |
| ) |
|
|
slot |
Updates the column title to "Amount (DisplayUnit)" and emits headerDataChanged() signal for table headers to react.
Definition at line 263 of file transactiontablemodel.cpp.
| void TransactionTableModel::updateConfirmations |
( |
| ) |
|
|
slot |
| void TransactionTableModel::updateDisplayUnit |
( |
| ) |
|
|
slot |
| void TransactionTableModel::updateTransaction |
( |
const QString & |
hash, |
|
|
int |
status, |
|
|
bool |
showTransaction |
|
) |
| |
|
slot |
| QStringList TransactionTableModel::columns |
|
private |
| bool TransactionTableModel::fProcessingQueuedTransactions |
|
private |
| CWallet* TransactionTableModel::wallet |
|
private |
The documentation for this class was generated from the following files: