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
,
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 26 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.
|
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 46 of file transactiontablemodel.h.
◆ TransactionTableModel()
◆ ~TransactionTableModel()
TransactionTableModel::~TransactionTableModel |
( |
| ) |
|
◆ addressColor()
◆ columnCount()
int TransactionTableModel::columnCount |
( |
const QModelIndex & |
parent | ) |
const |
|
override |
◆ data()
QVariant TransactionTableModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role |
|
) |
| const |
|
override |
◆ formatTooltip()
◆ formatTxAmount()
◆ formatTxDate()
◆ formatTxStatus()
◆ formatTxToAddress()
QString TransactionTableModel::formatTxToAddress |
( |
const TransactionRecord * |
wtx, |
|
|
bool |
tooltip |
|
) |
| const |
|
private |
◆ formatTxType()
◆ headerData()
QVariant TransactionTableModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role |
|
) |
| const |
|
override |
◆ index()
QModelIndex TransactionTableModel::index |
( |
int |
row, |
|
|
int |
column, |
|
|
const QModelIndex & |
parent = QModelIndex() |
|
) |
| const |
|
override |
◆ lookupAddress()
QString TransactionTableModel::lookupAddress |
( |
const std::string & |
address, |
|
|
bool |
tooltip |
|
) |
| const |
|
private |
◆ processingQueuedTransactions()
bool TransactionTableModel::processingQueuedTransactions |
( |
| ) |
const |
|
inline |
◆ rowCount()
int TransactionTableModel::rowCount |
( |
const QModelIndex & |
parent | ) |
const |
|
override |
◆ setProcessingQueuedTransactions
void TransactionTableModel::setProcessingQueuedTransactions |
( |
bool |
value | ) |
|
|
inlineslot |
◆ subscribeToCoreSignals()
void TransactionTableModel::subscribeToCoreSignals |
( |
| ) |
|
|
private |
◆ txAddressDecoration()
QVariant TransactionTableModel::txAddressDecoration |
( |
const TransactionRecord * |
wtx | ) |
const |
|
private |
◆ txStatusDecoration()
QVariant TransactionTableModel::txStatusDecoration |
( |
const TransactionRecord * |
wtx | ) |
const |
|
private |
◆ txWatchonlyDecoration()
QVariant TransactionTableModel::txWatchonlyDecoration |
( |
const TransactionRecord * |
wtx | ) |
const |
|
private |
◆ unsubscribeFromCoreSignals()
void TransactionTableModel::unsubscribeFromCoreSignals |
( |
| ) |
|
|
private |
◆ updateAmountColumnTitle
void TransactionTableModel::updateAmountColumnTitle |
( |
| ) |
|
|
slot |
Updates the column title to "Amount (DisplayUnit)" and emits headerDataChanged() signal for table headers to react.
Definition at line 271 of file transactiontablemodel.cpp.
◆ updateConfirmations
void TransactionTableModel::updateConfirmations |
( |
| ) |
|
|
slot |
◆ updateDisplayUnit
void TransactionTableModel::updateDisplayUnit |
( |
| ) |
|
|
slot |
◆ updateTransaction
void TransactionTableModel::updateTransaction |
( |
const QString & |
hash, |
|
|
int |
status, |
|
|
bool |
showTransaction |
|
) |
| |
|
slot |
◆ TransactionTablePriv
◆ columns
QStringList TransactionTableModel::columns |
|
private |
◆ fProcessingQueuedTransactions
bool TransactionTableModel::fProcessingQueuedTransactions {false} |
|
private |
◆ m_handler_show_progress
◆ m_handler_transaction_changed
◆ platformStyle
◆ priv
◆ walletModel
The documentation for this class was generated from the following files: