Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
recentrequeststablemodel.cpp
Go to the documentation of this file.
30 connect(walletModel->getOptionsModel(), SIGNAL(displayUnitChanged(int)), this, SLOT(updateDisplayUnit()));
86 return BitcoinUnits::format(walletModel->getOptionsModel()->getDisplayUnit(), rec->recipient.amount, false, BitcoinUnits::separatorNever);
88 return BitcoinUnits::format(walletModel->getOptionsModel()->getDisplayUnit(), rec->recipient.amount);
99 bool RecentRequestsTableModel::setData(const QModelIndex &index, const QVariant &value, int role)
104 QVariant RecentRequestsTableModel::headerData(int section, Qt::Orientation orientation, int role) const
126 return (this->walletModel->getOptionsModel() != nullptr) ? tr("Requested") + " ("+BitcoinUnits::name(this->walletModel->getOptionsModel()->getDisplayUnit()) + ")" : "";
129 QModelIndex RecentRequestsTableModel::index(int row, int column, const QModelIndex &parent) const
210 Q_EMIT dataChanged(index(0, 0, QModelIndex()), index(list.size() - 1, NUMBER_OF_COLUMNS - 1, QModelIndex()));
218 bool RecentRequestEntryLessThan::operator()(RecentRequestEntry &left, RecentRequestEntry &right) const
void loadReceiveRequests(std::vector< std::string > &vReceiveRequests)
Definition: walletmodel.cpp:776
bool setData(const QModelIndex &index, const QVariant &value, int role)
Definition: recentrequeststablemodel.cpp:99
void addNewRequest(const SendCoinsRecipient &recipient)
Definition: recentrequeststablemodel.cpp:165
void sort(int column, Qt::SortOrder order=Qt::AscendingOrder)
Definition: recentrequeststablemodel.cpp:207
int64_t nReceiveRequestsMaxId
Definition: recentrequeststablemodel.h:99
~RecentRequestsTableModel()
Definition: recentrequeststablemodel.cpp:33
bool removeRows(int row, int count, const QModelIndex &parent=QModelIndex())
Definition: recentrequeststablemodel.cpp:136
Double ended buffer combining vector and stream-like interfaces.
Definition: streams.h:103
RecentRequestsTableModel(CWallet *wallet, WalletModel *parent)
Definition: recentrequeststablemodel.cpp:15
QList< RecentRequestEntry > list
Definition: recentrequeststablemodel.h:98
QVariant headerData(int section, Qt::Orientation orientation, int role) const
Definition: recentrequeststablemodel.cpp:104
int rowCount(const QModelIndex &parent) const
Definition: recentrequeststablemodel.cpp:38
Definition: walletmodel.h:39
QModelIndex index(int row, int column, const QModelIndex &parent) const
Definition: recentrequeststablemodel.cpp:129
const RecentRequestEntry & entry(int row) const
Definition: recentrequeststablemodel.h:86
bool operator()(RecentRequestEntry &left, RecentRequestEntry &right) const
Definition: recentrequeststablemodel.cpp:218
QVariant data(const QModelIndex &index, int role) const
Definition: recentrequeststablemodel.cpp:52
Definition: bitcoinunits.h:68
WalletModel * walletModel
Definition: recentrequeststablemodel.h:96
void updateAmountColumnTitle()
Updates the column title to "Amount (DisplayUnit)" and emits headerDataChanged() signal for table hea...
Definition: recentrequeststablemodel.cpp:117
A CWallet is an extension of a keystore, which also maintains a set of transactions and balances...
Definition: wallet.h:715
void updateDisplayUnit()
Definition: recentrequeststablemodel.cpp:213
Definition: recentrequeststablemodel.h:16
int columnCount(const QModelIndex &parent) const
Definition: recentrequeststablemodel.cpp:45
bool saveReceiveRequest(const std::string &sAddress, const int64_t nId, const std::string &sRequest)
Definition: walletmodel.cpp:781
QString getAmountTitle()
Gets title for amount column including current display unit if optionsModel reference available...
Definition: recentrequeststablemodel.cpp:124
static const int CLIENT_VERSION
dashd-res.rc includes this file, but it cannot cope with real c++ code.
Definition: clientversion.h:38
static QString format(int unit, const CAmount &amount, bool plussign=false, SeparatorStyle separators=separatorStandard)
Format as string.
Definition: bitcoinunits.cpp:119
Qt::ItemFlags flags(const QModelIndex &index) const
Definition: recentrequeststablemodel.cpp:159
Definition: serialize.h:161