Model for list of recently generated payment requests / bitcoincash: URIs.
More...
#include <recentrequeststablemodel.h>
|
WalletModel * | walletModel |
|
QStringList | columns |
|
QList< RecentRequestEntry > | list |
|
int64_t | nReceiveRequestsMaxId {0} |
|
int | rowCount (const QModelIndex &parent) const override |
|
int | columnCount (const QModelIndex &parent) const override |
|
QVariant | data (const QModelIndex &index, int role) const override |
|
bool | setData (const QModelIndex &index, const QVariant &value, int role) override |
|
QVariant | headerData (int section, Qt::Orientation orientation, int role) const override |
|
QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const override |
|
bool | removeRows (int row, int count, const QModelIndex &parent=QModelIndex()) 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 |
|
void | addNewRequest (const SendCoinsRecipient &recipient) |
|
void | addNewRequest (const std::string &recipient) |
|
void | addNewRequest (RecentRequestEntry &recipient) |
|
void | updateDisplayUnit () |
|
void | updateAmountColumnTitle () |
| Updates the column title to "Amount (DisplayUnit)" and emits headerDataChanged() signal for table headers to react.
|
|
QString | getAmountTitle () |
| Gets title for amount column including current display unit if optionsModel reference available.
|
|
Model for list of recently generated payment requests / bitcoincash: URIs.
Part of wallet model.
Definition at line 51 of file recentrequeststablemodel.h.
◆ ColumnIndex
◆ RecentRequestsTableModel()
RecentRequestsTableModel::RecentRequestsTableModel |
( |
WalletModel * |
parent | ) |
|
|
explicit |
◆ ~RecentRequestsTableModel()
RecentRequestsTableModel::~RecentRequestsTableModel |
( |
| ) |
|
◆ addNewRequest() [1/3]
◆ addNewRequest() [2/3]
void RecentRequestsTableModel::addNewRequest |
( |
const std::string & |
recipient | ) |
|
◆ addNewRequest() [3/3]
◆ columnCount()
int RecentRequestsTableModel::columnCount |
( |
const QModelIndex & |
parent | ) |
const |
|
override |
◆ data()
◆ entry()
◆ flags()
Qt::ItemFlags RecentRequestsTableModel::flags |
( |
const QModelIndex & |
index | ) |
const |
|
override |
◆ getAmountTitle()
QString RecentRequestsTableModel::getAmountTitle |
( |
| ) |
|
|
private |
Gets title for amount column including current display unit if optionsModel reference available.
Definition at line 121 of file recentrequeststablemodel.cpp.
◆ headerData()
QVariant RecentRequestsTableModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role |
|
) |
| const |
|
override |
◆ index()
◆ removeRows()
◆ rowCount()
int RecentRequestsTableModel::rowCount |
( |
const QModelIndex & |
parent | ) |
const |
|
override |
◆ setData()
◆ sort()
void RecentRequestsTableModel::sort |
( |
int |
column, |
|
|
Qt::SortOrder |
order = Qt::AscendingOrder |
|
) |
| |
|
override |
◆ updateAmountColumnTitle()
void RecentRequestsTableModel::updateAmountColumnTitle |
( |
| ) |
|
|
private |
◆ updateDisplayUnit
void RecentRequestsTableModel::updateDisplayUnit |
( |
| ) |
|
|
slot |
◆ columns
◆ list
◆ nReceiveRequestsMaxId
int64_t RecentRequestsTableModel::nReceiveRequestsMaxId {0} |
|
private |
◆ walletModel
The documentation for this class was generated from the following files: