 |
PRCYCoin
2.0.0.7rc1
P2P Digital Currency
|
Go to the documentation of this file.
5 #ifndef BITCOIN_QT_TRANSACTIONTABLEMODEL_H
6 #define BITCOIN_QT_TRANSACTIONTABLEMODEL_H
10 #include <QAbstractTableModel>
11 #include <QStringList>
71 int rowCount(
const QModelIndex& parent)
const;
73 QVariant
data(
const QModelIndex&
index,
int role)
const;
74 QVariant
headerData(
int section, Qt::Orientation orientation,
int role)
const;
75 QModelIndex
index(
int row,
int column,
const QModelIndex& parent = QModelIndex())
const;
88 QString
lookupAddress(
const std::string& address,
bool tooltip)
const;
121 #endif // BITCOIN_QT_TRANSACTIONTABLEMODEL_H
QVariant txAddressDecoration(const TransactionRecord *wtx) const
QString formatTxStatus(const TransactionRecord *wtx) const
void updateConfirmations()
QVariant txStatusDecoration(const TransactionRecord *wtx) const
Interface to Bitcoin wallet from Qt view code.
@ AddressRole
Address of transaction.
bool fProcessingQueuedTransactions
QString formatTxDate(const TransactionRecord *wtx) const
@ WatchonlyRole
Watch-only boolean.
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
QVariant txWatchonlyDecoration(const TransactionRecord *wtx) const
UI model for a transaction.
@ TxIDRole
Unique identifier.
QString formatTxAmount(const TransactionRecord *wtx, bool showUnconfirmed=true, BitcoinUnits::SeparatorStyle separators=BitcoinUnits::separatorStandard) const
void updateTransaction(const QString &hash, int status, bool showTransaction)
QString formatTxConfirmations(const TransactionRecord *wtx) const
@ AmountRole
Net amount of transaction.
void subscribeToCoreSignals()
void unsubscribeFromCoreSignals()
QString formatTxToAddress(const TransactionRecord *wtx, bool tooltip) const
RoleIndex
Roles to get specific information from a transaction row.
TransactionTablePriv * priv
int rowCount(const QModelIndex &parent) const
@ StatusRole
Transaction status (TransactionRecord::Status)
int columnCount(const QModelIndex &parent) const
QVariant headerData(int section, Qt::Orientation orientation, int role) const
QVariant data(const QModelIndex &index, int role) const
bool processingQueuedTransactions()
@ FormattedAmountRole
Formatted amount, without brackets when unconfirmed.
@ LongDescriptionRole
Long description (HTML format)
QVariant addressColor(const TransactionRecord *wtx) const
UI model for the transaction table of a wallet.
QString formatTxType(const TransactionRecord *wtx) const
@ WatchonlyDecorationRole
Watch-only icon.
A CWallet is an extension of a keystore, which also maintains a set of transactions and balances,...
QString lookupAddress(const std::string &address, bool tooltip) const
@ TxHashRole
Transaction hash.
@ DateRole
Date and time this transaction was created.
TransactionTableModel(CWallet *wallet, WalletModel *parent=0)
@ TypeRole
Type of transaction.
void updateAmountColumnTitle()
Updates the column title to "Amount (DisplayUnit)" and emits headerDataChanged() signal for table hea...
void setProcessingQueuedTransactions(bool value)
@ LabelRole
Label of address related to transaction.
QString formatTooltip(const TransactionRecord *rec) const
WalletModel * walletModel
@ ConfirmedRole
Is transaction confirmed?