5 #ifndef BITCOIN_QT_TRANSACTIONTABLEMODEL_H
6 #define BITCOIN_QT_TRANSACTIONTABLEMODEL_H
10 #include <QAbstractTableModel>
11 #include <QStringList>
79 int rowCount(
const QModelIndex &parent)
const override;
80 int columnCount(
const QModelIndex &parent)
const override;
81 QVariant
data(
const QModelIndex &
index,
int role)
const override;
82 QVariant
headerData(
int section, Qt::Orientation orientation,
int role)
const override;
83 QModelIndex
index(
int row,
int column,
const QModelIndex & parent = QModelIndex())
const override;
98 QString
lookupAddress(
const std::string &address,
bool tooltip)
const;
123 #endif // BITCOIN_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...
QVariant txStatusDecoration(const TransactionRecord *wtx) const
QVariant headerData(int section, Qt::Orientation orientation, int role) const override
Transaction status (TransactionRecord::Status)
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()
int columnCount(const QModelIndex &parent) const override
QString lookupAddress(const std::string &address, bool tooltip) const
Transaction data, hex-encoded.
bool fProcessingQueuedTransactions
int rowCount(const QModelIndex &parent) const override
Long description (HTML format)
TransactionTablePriv * priv
QString formatTxStatus(const TransactionRecord *wtx) const
UI model for a transaction.
Whole transaction as plain text.
std::unique_ptr< interfaces::Handler > m_handler_transaction_changed
Is transaction confirmed?
TransactionTableModel(const PlatformStyle *platformStyle, WalletModel *parent=nullptr)
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const override
QString formatTxAmount(const TransactionRecord *wtx, bool showUnconfirmed=true, BitcoinUnits::SeparatorStyle separators=BitcoinUnits::SeparatorStyle::STANDARD) const
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
std::unique_ptr< interfaces::Handler > m_handler_show_progress
RoleIndex
Roles to get specific information from a transaction row.
Net amount of transaction.
void setProcessingQueuedTransactions(bool value)
Interface to Bitcoin wallet from Qt view code.
Label of address related to transaction.
Formatted amount, without brackets when unconfirmed.
QVariant data(const QModelIndex &index, int role) const override
void updateConfirmations()
bool processingQueuedTransactions() const
const PlatformStyle * platformStyle
QString formatTxDate(const TransactionRecord *wtx) const