Changeset View
Changeset View
Standalone View
Standalone View
src/qt/recentrequeststablemodel.h
Show First 20 Lines • Show All 90 Lines • ▼ Show 20 Lines | |||||
public Q_SLOTS: | public Q_SLOTS: | ||||
void sort(int column, Qt::SortOrder order = Qt::AscendingOrder) override; | void sort(int column, Qt::SortOrder order = Qt::AscendingOrder) override; | ||||
void updateDisplayUnit(); | void updateDisplayUnit(); | ||||
private: | private: | ||||
WalletModel *walletModel; | WalletModel *walletModel; | ||||
QStringList columns; | QStringList columns; | ||||
QList<RecentRequestEntry> list; | QList<RecentRequestEntry> list; | ||||
int64_t nReceiveRequestsMaxId; | int64_t nReceiveRequestsMaxId{0}; | ||||
/** Updates the column title to "Amount (DisplayUnit)" and emits | /** Updates the column title to "Amount (DisplayUnit)" and emits | ||||
* headerDataChanged() signal for table headers to react. */ | * headerDataChanged() signal for table headers to react. */ | ||||
void updateAmountColumnTitle(); | void updateAmountColumnTitle(); | ||||
/** Gets title for amount column including current display unit if | /** Gets title for amount column including current display unit if | ||||
* optionsModel reference available. */ | * optionsModel reference available. */ | ||||
QString getAmountTitle(); | QString getAmountTitle(); | ||||
}; | }; | ||||
#endif // BITCOIN_QT_RECENTREQUESTSTABLEMODEL_H | #endif // BITCOIN_QT_RECENTREQUESTSTABLEMODEL_H |