5 #ifndef TRANSACTIONTABLEMODEL_H
6 #define TRANSACTIONTABLEMODEL_H
8 #include <QAbstractTableModel>
65 int rowCount(
const QModelIndex &parent)
const;
67 QVariant
data(
const QModelIndex &
index,
int role)
const;
68 QVariant
headerData(
int section, Qt::Orientation orientation,
int role)
const;
69 QModelIndex
index(
int row,
int column,
const QModelIndex & parent = QModelIndex())
const;
77 QString
lookupAddress(
const std::string &address,
bool tooltip)
const;
106 label(label), address(address) {}
144 QVariant
headerData(
int section, Qt::Orientation orientation,
int role)
const;
146 MatrixModel(
int numRows,
int numColumns, uint*
data,
unsigned int propertyId);
148 int rowCount(
const QModelIndex& parent = QModelIndex())
const;
149 int columnCount(
const QModelIndex& parent = QModelIndex())
const;
150 QVariant
data(
const QModelIndex& index,
int role = Qt::DisplayRole)
const;
154 int fillin(
unsigned int propertyId);
157 #endif // TRANSACTIONTABLEMODEL_H
QVariant addressColor(const TransactionRecord *wtx) const
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
int fillin(unsigned int propertyId)
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)
msc_AddressTableEntry(const QString &label, const QString &address)
TransactionTablePriv * priv
int rowCount(const QModelIndex &parent=QModelIndex()) const
QString formatTxStatus(const TransactionRecord *wtx) const
UI model for a transaction.
int columnCount(const QModelIndex &parent=QModelIndex()) const
QString formatTxAmount(const TransactionRecord *wtx, bool showUnconfirmed=true) const
bool operator()(const msc_AddressTableEntry &a, const QString &b) const
Is transaction confirmed?
QVariant headerData(int section, Qt::Orientation orientation, int role) const
void emitDataChanged(int idx)
bool operator()(const msc_AddressTableEntry &a, const msc_AddressTableEntry &b) const
Date and time this transaction was created.
void updateConfirmations(void)
UI model for the transaction table of a wallet.
bool operator()(const QString &a, const msc_AddressTableEntry &b) const
QString formatTxType(const TransactionRecord *wtx) const
QString formatTooltip(const TransactionRecord *rec) const
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
RoleIndex
Roles to get specific information from a transaction row.
Net amount of transaction.
Interface to Bitcoin 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.
msc_AddressTablePriv * priv
Formatted amount, without brackets when unconfirmed.
void updateConfirmations()
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
MatrixModel(CWallet *wallet, WalletModel *parent=0)
QString formatTxDate(const TransactionRecord *wtx) const