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