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 27 of file transactiontablemodel.h.
◆ ColumnIndex
◆ RoleIndex
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 48 of file transactiontablemodel.h.
◆ TransactionTableModel()
◆ ~TransactionTableModel()
TransactionTableModel::~TransactionTableModel |
( |
| ) |
|
◆ addressColor()
◆ columnCount()
int TransactionTableModel::columnCount |
( |
const QModelIndex & |
parent | ) |
const |
|
override |
◆ data()
◆ formatTooltip()
◆ formatTxAmount()
◆ formatTxDate()
◆ formatTxStatus()
◆ formatTxToAddress()
◆ formatTxType()
◆ headerData()
QVariant TransactionTableModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role |
|
) |
| const |
|
override |
◆ index()
◆ lookupAddress()
QString TransactionTableModel::lookupAddress |
( |
const std::string & |
address, |
|
|
bool |
tooltip |
|
) |
| const |
|
private |
Look up address in address book, if found return label (address) otherwise just return (address)
Definition at line 346 of file transactiontablemodel.cpp.
◆ processingQueuedTransactions()
bool TransactionTableModel::processingQueuedTransactions |
( |
| ) |
const |
|
inline |
◆ rowCount()
int TransactionTableModel::rowCount |
( |
const QModelIndex & |
parent | ) |
const |
|
override |
◆ setProcessingQueuedTransactions
void TransactionTableModel::setProcessingQueuedTransactions |
( |
bool |
value | ) |
|
|
inlineslot |
Needed to update fProcessingQueuedTransactions through a QueuedConnection.
Definition at line 138 of file transactiontablemodel.h.
◆ subscribeToCoreSignals()
void TransactionTableModel::subscribeToCoreSignals |
( |
| ) |
|
|
private |
◆ txAddressDecoration()
◆ txStatusDecoration()
◆ txWatchonlyDecoration()
◆ unsubscribeFromCoreSignals()
void TransactionTableModel::unsubscribeFromCoreSignals |
( |
| ) |
|
|
private |
◆ updateAmountColumnTitle
void TransactionTableModel::updateAmountColumnTitle |
( |
| ) |
|
|
slot |
◆ updateConfirmations
void TransactionTableModel::updateConfirmations |
( |
| ) |
|
|
slot |
◆ updateDisplayUnit
void TransactionTableModel::updateDisplayUnit |
( |
| ) |
|
|
slot |
◆ updateTransaction
void TransactionTableModel::updateTransaction |
( |
const QString & |
hash, |
|
|
int |
status, |
|
|
bool |
showTransaction |
|
) |
| |
|
slot |
◆ TransactionTablePriv
◆ columns
◆ fProcessingQueuedTransactions
bool TransactionTableModel::fProcessingQueuedTransactions |
|
private |
◆ m_handler_show_progress
◆ m_handler_transaction_changed
◆ platformStyle
◆ priv
◆ walletModel
The documentation for this class was generated from the following files: