6 #ifndef TRANSACTIONTABLEMODEL_H
7 #define TRANSACTIONTABLEMODEL_H
9 #include <QAbstractTableModel>
10 #include <QStringList>
69 int rowCount(
const QModelIndex &parent)
const;
71 QVariant
data(
const QModelIndex &
index,
int role)
const;
72 QVariant
headerData(
int section, Qt::Orientation orientation,
int role)
const;
73 QModelIndex
index(
int row,
int column,
const QModelIndex & parent = QModelIndex())
const;
81 QString
lookupAddress(
const std::string &address,
bool tooltip)
const;
103 #endif // TRANSACTIONTABLEMODEL_H
QVariant addressColor(const TransactionRecord *wtx) const
void updateAmountColumnTitle()
Updates the column title to "Amount (DisplayUnit)" and emits headerDataChanged() signal for table hea...
int columnCount(const QModelIndex &parent) const
QVariant data(const QModelIndex &index, int role) const
QVariant txStatusDecoration(const TransactionRecord *wtx) const
TransactionTableModel(CWallet *wallet, WalletModel *parent=0)
Transaction status (TransactionRecord::Status)
QString formatTxToAddress(const TransactionRecord *wtx, bool tooltip) const
WalletModel * walletModel
QVariant txAddressDecoration(const TransactionRecord *wtx) const
QString lookupAddress(const std::string &address, bool tooltip) const
void updateTransaction(const QString &hash, int status)
QVariant headerData(int section, Qt::Orientation orientation, int role) const
Long description (HTML format)
TransactionTablePriv * priv
QString formatTxStatus(const TransactionRecord *wtx) const
UI model for a transaction.
QString formatTxAmount(const TransactionRecord *wtx, bool showUnconfirmed=true) const
Is transaction confirmed?
Date and time this transaction was created.
UI model for the transaction table of a wallet.
QString formatTxType(const TransactionRecord *wtx) const
QString formatTooltip(const TransactionRecord *rec) const
QVariant txWatchonlyDecoration(const TransactionRecord *wtx) const
RoleIndex
Roles to get specific information from a transaction row.
Net amount of transaction.
Interface to Anoncoin wallet from Qt view code.
int rowCount(const QModelIndex &parent) const
A CWallet is an extension of a keystore, which also maintains a set of transactions and balances...
Label of address related to transaction.
Formatted amount, without brackets when unconfirmed.
void updateConfirmations()
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
QString formatTxDate(const TransactionRecord *wtx) const