Changeset View
Changeset View
Standalone View
Standalone View
src/qt/recentrequeststablemodel.cpp
// Copyright (c) 2011-2016 The Bitcoin Core developers | // Copyright (c) 2011-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include "recentrequeststablemodel.h" | #include "recentrequeststablemodel.h" | ||||
#include "bitcoinunits.h" | #include "bitcoinunits.h" | ||||
#include "guiutil.h" | #include "guiutil.h" | ||||
#include "optionsmodel.h" | #include "optionsmodel.h" | ||||
#include "clientversion.h" | #include "clientversion.h" | ||||
#include "streams.h" | #include "streams.h" | ||||
RecentRequestsTableModel::RecentRequestsTableModel(CWallet *wallet, | RecentRequestsTableModel::RecentRequestsTableModel(WalletModel *parent) | ||||
WalletModel *parent) | |||||
: QAbstractTableModel(parent), walletModel(parent) { | : QAbstractTableModel(parent), walletModel(parent) { | ||||
Q_UNUSED(wallet); | |||||
nReceiveRequestsMaxId = 0; | nReceiveRequestsMaxId = 0; | ||||
// Load entries from wallet | // Load entries from wallet | ||||
std::vector<std::string> vReceiveRequests; | std::vector<std::string> vReceiveRequests; | ||||
parent->loadReceiveRequests(vReceiveRequests); | parent->loadReceiveRequests(vReceiveRequests); | ||||
for (const std::string &request : vReceiveRequests) { | for (const std::string &request : vReceiveRequests) { | ||||
addNewRequest(request); | addNewRequest(request); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 206 Lines • Show Last 20 Lines |