Changeset View
Changeset View
Standalone View
Standalone View
src/qt/recentrequeststablemodel.h
Show First 20 Lines • Show All 78 Lines • ▼ Show 20 Lines | bool setData(const QModelIndex &index, const QVariant &value, | ||||
int role) override; | int role) override; | ||||
QVariant headerData(int section, Qt::Orientation orientation, | QVariant headerData(int section, Qt::Orientation orientation, | ||||
int role) const override; | int role) const override; | ||||
QModelIndex index(int row, int column, | QModelIndex index(int row, int column, | ||||
const QModelIndex &parent = QModelIndex()) const override; | const QModelIndex &parent = QModelIndex()) const override; | ||||
bool removeRows(int row, int count, | bool removeRows(int row, int count, | ||||
const QModelIndex &parent = QModelIndex()) override; | const QModelIndex &parent = QModelIndex()) override; | ||||
Qt::ItemFlags flags(const QModelIndex &index) const override; | Qt::ItemFlags flags(const QModelIndex &index) const override; | ||||
void sort(int column, Qt::SortOrder order = Qt::AscendingOrder) override; | |||||
/*@}*/ | /*@}*/ | ||||
const RecentRequestEntry &entry(int row) const { return list[row]; } | const RecentRequestEntry &entry(int row) const { return list[row]; } | ||||
void addNewRequest(const SendCoinsRecipient &recipient); | void addNewRequest(const SendCoinsRecipient &recipient); | ||||
void addNewRequest(const std::string &recipient); | void addNewRequest(const std::string &recipient); | ||||
void addNewRequest(RecentRequestEntry &recipient); | void addNewRequest(RecentRequestEntry &recipient); | ||||
public Q_SLOTS: | public Q_SLOTS: | ||||
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{0}; | int64_t nReceiveRequestsMaxId{0}; | ||||
Show All 9 Lines |