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 <qt/recentrequeststablemodel.h> | #include <qt/recentrequeststablemodel.h> | ||||
#include <qt/bitcoinunits.h> | #include <qt/bitcoinunits.h> | ||||
#include <qt/guiutil.h> | #include <qt/guiutil.h> | ||||
#include <qt/optionsmodel.h> | #include <qt/optionsmodel.h> | ||||
#include <clientversion.h> | #include <clientversion.h> | ||||
#include <streams.h> | #include <streams.h> | ||||
RecentRequestsTableModel::RecentRequestsTableModel(WalletModel *parent) | RecentRequestsTableModel::RecentRequestsTableModel(WalletModel *parent) | ||||
: QAbstractTableModel(parent), walletModel(parent) { | : QAbstractTableModel(parent), walletModel(parent) { | ||||
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); | ||||
} | } | ||||
/* These columns must match the indices in the ColumnIndex enumeration */ | /* These columns must match the indices in the ColumnIndex enumeration */ | ||||
▲ Show 20 Lines • Show All 203 Lines • Show Last 20 Lines |