5 #ifndef FABCOIN_QT_TRANSACTIONTABLEMODEL_H 6 #define FABCOIN_QT_TRANSACTIONTABLEMODEL_H 10 #include <QAbstractTableModel> 11 #include <QStringList> 77 int rowCount(
const QModelIndex &parent)
const;
79 QVariant
data(
const QModelIndex &
index,
int role)
const;
80 QVariant
headerData(
int section, Qt::Orientation orientation,
int role)
const;
81 QModelIndex
index(
int row,
int column,
const QModelIndex & parent = QModelIndex())
const;
120 #endif // FABCOIN_QT_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
Transaction status (TransactionRecord::Status)
QString formatTxAmount(const TransactionRecord *wtx, bool showUnconfirmed=true, FabcoinUnits::SeparatorStyle separators=FabcoinUnits::separatorStandard) const
QString formatTxToAddress(const TransactionRecord *wtx, bool tooltip) const
WalletModel * walletModel
void updateTransaction(const QString &hash, int status, bool showTransaction)
QVariant txAddressDecoration(const TransactionRecord *wtx) const
void unsubscribeFromCoreSignals()
QString lookupAddress(const std::string &address, bool tooltip) const
Transaction data, hex-encoded.
QVariant headerData(int section, Qt::Orientation orientation, int role) const
TransactionTableModel(const PlatformStyle *platformStyle, CWallet *wallet, WalletModel *parent=0)
bool fProcessingQueuedTransactions
Long description (HTML format)
TransactionTablePriv * priv
QString formatTxStatus(const TransactionRecord *wtx) const
UI model for a transaction.
Whole transaction as plain text.
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
void subscribeToCoreSignals()
QVariant txWatchonlyDecoration(const TransactionRecord *wtx) const
RoleIndex
Roles to get specific information from a transaction row.
Net amount of transaction.
void setProcessingQueuedTransactions(bool value)
Interface to Fabcoin wallet from Qt view code.
bool processingQueuedTransactions()
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.
struct evm_uint160be address(struct evm_env *env)
Formatted amount, without brackets when unconfirmed.
void updateConfirmations()
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
const PlatformStyle * platformStyle
QString formatTxDate(const TransactionRecord *wtx) const