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
,
AddressRole
, LabelRole
, AmountRole
, TxHashRole
,
ConfirmedRole
, FormattedAmountRole
, StatusRole
, ShieldedCreditAmountRole
,
SizeRole
} |
| | Roles to get specific information from a transaction row. More...
|
| |
|
| void | txLoaded (const QString &hash, const int txType, const int txStatus) |
| |
| void | txArrived (const QString &hash, const bool isCoinStake, const bool isMNReward, const bool isCSAnyType) |
| |
UI model for the transaction table of a wallet.
Definition at line 28 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.
|
| AddressRole | Address of transaction.
|
| LabelRole | Label of address related to transaction.
|
| AmountRole | Net amount of transaction.
|
| TxHashRole | Transaction hash.
|
| ConfirmedRole | Is transaction confirmed?
|
| FormattedAmountRole | Formatted amount, without brackets when unconfirmed.
|
| StatusRole | Transaction status (TransactionRecord::Status)
|
| ShieldedCreditAmountRole | Credit amount of transaction.
|
| SizeRole | Transaction size in bytes.
|
Definition at line 49 of file transactiontablemodel.h.
◆ TransactionTableModel()
| TransactionTableModel::TransactionTableModel |
( |
CWallet * |
wallet, |
|
|
WalletModel * |
parent = nullptr |
|
) |
| |
|
explicit |
◆ ~TransactionTableModel()
| TransactionTableModel::~TransactionTableModel |
( |
| ) |
|
|
override |
◆ 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 |
◆ init()
| void TransactionTableModel::init |
( |
| ) |
|
◆ 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 |
◆ size()
| int TransactionTableModel::size |
( |
| ) |
const |
◆ subscribeToCoreSignals()
| void TransactionTableModel::subscribeToCoreSignals |
( |
| ) |
|
|
private |
◆ txAddressDecoration()
| QVariant TransactionTableModel::txAddressDecoration |
( |
const TransactionRecord * |
wtx | ) |
const |
|
private |
◆ txArrived
| void TransactionTableModel::txArrived |
( |
const QString & |
hash, |
|
|
const bool |
isCoinStake, |
|
|
const bool |
isMNReward, |
|
|
const bool |
isCSAnyType |
|
) |
| |
|
signal |
◆ txLoaded
| void TransactionTableModel::txLoaded |
( |
const QString & |
hash, |
|
|
const int |
txType, |
|
|
const int |
txStatus |
|
) |
| |
|
signal |
◆ 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 329 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
◆ priv
◆ wallet
| CWallet* TransactionTableModel::wallet {nullptr} |
|
private |
◆ walletModel
| WalletModel* TransactionTableModel::walletModel {nullptr} |
|
private |
The documentation for this class was generated from the following files: