![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
#include <transactiontablemodel.h>
Public Types | |
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 } |
Public Slots | |
void | updateTransaction (const QString &hash, int status, bool showTransaction) |
void | updateConfirmations () |
void | updateDisplayUnit () |
void | updateAmountColumnTitle () |
void | setProcessingQueuedTransactions (bool value) |
Public Member Functions | |
TransactionTableModel (const PlatformStyle *platformStyle, CWallet *wallet, WalletModel *parent=0) | |
~TransactionTableModel () | |
int | rowCount (const QModelIndex &parent) const |
int | columnCount (const QModelIndex &parent) const |
QVariant | data (const QModelIndex &index, int role) const |
QVariant | headerData (int section, Qt::Orientation orientation, int role) const |
QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const |
bool | processingQueuedTransactions () |
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::separatorStandard) const |
QString | formatTooltip (const TransactionRecord *rec) const |
QVariant | txStatusDecoration (const TransactionRecord *wtx) const |
QVariant | txWatchonlyDecoration (const TransactionRecord *wtx) const |
QVariant | txAddressDecoration (const TransactionRecord *wtx) const |
Private Attributes | |
CWallet * | wallet |
WalletModel * | walletModel |
QStringList | columns |
TransactionTablePriv * | priv |
bool | fProcessingQueuedTransactions |
const PlatformStyle * | platformStyle |
Friends | |
class | TransactionTablePriv |
UI model for the transaction table of a wallet.
Definition at line 22 of file transactiontablemodel.h.
Enumerator | |
---|---|
Status | |
Watchonly | |
Date | |
Type | |
ToAddress | |
Amount |
Definition at line 30 of file transactiontablemodel.h.
Roles to get specific information from a transaction row. These are independent of column.
Definition at line 42 of file transactiontablemodel.h.
|
explicit |
Definition at line 238 of file transactiontablemodel.cpp.
TransactionTableModel::~TransactionTableModel | ( | ) |
Definition at line 254 of file transactiontablemodel.cpp.
|
private |
Definition at line 447 of file transactiontablemodel.cpp.
Referenced by data().
int TransactionTableModel::columnCount | ( | const QModelIndex & | parent | ) | const |
Definition at line 291 of file transactiontablemodel.cpp.
QVariant TransactionTableModel::data | ( | const QModelIndex & | index, |
int | role | ||
) | const |
Definition at line 547 of file transactiontablemodel.cpp.
Referenced by index(), and WalletView::processNewTransaction().
|
private |
Definition at line 536 of file transactiontablemodel.cpp.
Referenced by data().
|
private |
Definition at line 474 of file transactiontablemodel.cpp.
Referenced by data().
|
private |
Definition at line 341 of file transactiontablemodel.cpp.
Referenced by data().
|
private |
Definition at line 297 of file transactiontablemodel.cpp.
Referenced by data(), and formatTooltip().
|
private |
Definition at line 421 of file transactiontablemodel.cpp.
Referenced by data(), and formatTooltip().
|
private |
Definition at line 368 of file transactiontablemodel.cpp.
Referenced by data(), and formatTooltip().
QVariant TransactionTableModel::headerData | ( | int | section, |
Qt::Orientation | orientation, | ||
int | role | ||
) | const |
Definition at line 685 of file transactiontablemodel.cpp.
QModelIndex TransactionTableModel::index | ( | int | row, |
int | column, | ||
const QModelIndex & | parent = QModelIndex() |
||
) | const |
Definition at line 718 of file transactiontablemodel.cpp.
Referenced by data(), WalletView::processNewTransaction(), updateConfirmations(), and updateDisplayUnit().
|
private |
Definition at line 353 of file transactiontablemodel.cpp.
Referenced by formatTxToAddress().
|
inline |
Definition at line 82 of file transactiontablemodel.h.
Referenced by WalletView::processNewTransaction().
int TransactionTableModel::rowCount | ( | const QModelIndex & | parent | ) | const |
Definition at line 285 of file transactiontablemodel.cpp.
|
inlineslot |
Definition at line 115 of file transactiontablemodel.h.
|
private |
Definition at line 801 of file transactiontablemodel.cpp.
Referenced by TransactionTableModel().
|
private |
Definition at line 402 of file transactiontablemodel.cpp.
Referenced by data().
|
private |
Definition at line 487 of file transactiontablemodel.cpp.
Referenced by data().
|
private |
Definition at line 527 of file transactiontablemodel.cpp.
Referenced by data().
|
private |
Definition at line 808 of file transactiontablemodel.cpp.
Referenced by ~TransactionTableModel().
|
slot |
Updates the column title to "Amount (DisplayUnit)" and emits headerDataChanged() signal for table headers to react.
Definition at line 261 of file transactiontablemodel.cpp.
Referenced by updateDisplayUnit().
|
slot |
Definition at line 275 of file transactiontablemodel.cpp.
Referenced by WalletModel::pollBalanceChanged().
|
slot |
Definition at line 729 of file transactiontablemodel.cpp.
Referenced by TransactionTableModel().
|
slot |
Definition at line 267 of file transactiontablemodel.cpp.
Referenced by TransactionView::abandonTx().
|
friend |
Definition at line 117 of file transactiontablemodel.h.
|
private |
Definition at line 87 of file transactiontablemodel.h.
Referenced by columnCount(), headerData(), TransactionTableModel(), and updateAmountColumnTitle().
|
private |
Definition at line 89 of file transactiontablemodel.h.
Referenced by processingQueuedTransactions(), and setProcessingQueuedTransactions().
|
private |
Definition at line 90 of file transactiontablemodel.h.
|
private |
Definition at line 88 of file transactiontablemodel.h.
Referenced by data(), index(), rowCount(), TransactionTableModel(), updateConfirmations(), updateDisplayUnit(), updateTransaction(), and ~TransactionTableModel().
|
private |
Definition at line 85 of file transactiontablemodel.h.
|
private |
Definition at line 86 of file transactiontablemodel.h.
Referenced by addressColor(), data(), formatTxAmount(), lookupAddress(), TransactionTableModel(), and updateAmountColumnTitle().