mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
Merge #8793: Do not shadow in src/qt
f839350
Do not shadow in src/qt (Pavel Janík)
This commit is contained in:
parent
17e110f47e
commit
c7a0b91d31
@ -22,12 +22,12 @@
|
||||
#include <QMessageBox>
|
||||
#include <QSortFilterProxyModel>
|
||||
|
||||
AddressBookPage::AddressBookPage(const PlatformStyle *platformStyle, Mode mode, Tabs tab, QWidget *parent) :
|
||||
AddressBookPage::AddressBookPage(const PlatformStyle *platformStyle, Mode _mode, Tabs _tab, QWidget *parent) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::AddressBookPage),
|
||||
model(0),
|
||||
mode(mode),
|
||||
tab(tab)
|
||||
mode(_mode),
|
||||
tab(_tab)
|
||||
{
|
||||
QString theme = GUIUtil::getThemeName();
|
||||
ui->setupUi(this);
|
||||
@ -108,14 +108,14 @@ AddressBookPage::~AddressBookPage()
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void AddressBookPage::setModel(AddressTableModel *model)
|
||||
void AddressBookPage::setModel(AddressTableModel *_model)
|
||||
{
|
||||
this->model = model;
|
||||
if(!model)
|
||||
this->model = _model;
|
||||
if(!_model)
|
||||
return;
|
||||
|
||||
proxyModel = new QSortFilterProxyModel(this);
|
||||
proxyModel->setSourceModel(model);
|
||||
proxyModel->setSourceModel(_model);
|
||||
proxyModel->setDynamicSortFilter(true);
|
||||
proxyModel->setSortCaseSensitivity(Qt::CaseInsensitive);
|
||||
proxyModel->setFilterCaseSensitivity(Qt::CaseInsensitive);
|
||||
@ -148,7 +148,7 @@ void AddressBookPage::setModel(AddressTableModel *model)
|
||||
this, SLOT(selectionChanged()));
|
||||
|
||||
// Select row for newly created address
|
||||
connect(model, SIGNAL(rowsInserted(QModelIndex,int,int)), this, SLOT(selectNewAddress(QModelIndex,int,int)));
|
||||
connect(_model, SIGNAL(rowsInserted(QModelIndex,int,int)), this, SLOT(selectNewAddress(QModelIndex,int,int)));
|
||||
|
||||
selectionChanged();
|
||||
}
|
||||
|
@ -32,8 +32,8 @@ struct AddressTableEntry
|
||||
QString address;
|
||||
|
||||
AddressTableEntry() {}
|
||||
AddressTableEntry(Type type, const QString &label, const QString &address):
|
||||
type(type), label(label), address(address) {}
|
||||
AddressTableEntry(Type _type, const QString &_label, const QString &_address):
|
||||
type(_type), label(_label), address(_address) {}
|
||||
};
|
||||
|
||||
struct AddressTableEntryLessThan
|
||||
@ -74,8 +74,8 @@ public:
|
||||
QList<AddressTableEntry> cachedAddressTable;
|
||||
AddressTableModel *parent;
|
||||
|
||||
AddressTablePriv(CWallet *wallet, AddressTableModel *parent):
|
||||
wallet(wallet), parent(parent) {}
|
||||
AddressTablePriv(CWallet *_wallet, AddressTableModel *_parent):
|
||||
wallet(_wallet), parent(_parent) {}
|
||||
|
||||
void refreshAddressTable()
|
||||
{
|
||||
@ -165,8 +165,8 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
AddressTableModel::AddressTableModel(CWallet *wallet, WalletModel *parent) :
|
||||
QAbstractTableModel(parent),walletModel(parent),wallet(wallet),priv(0)
|
||||
AddressTableModel::AddressTableModel(CWallet *_wallet, WalletModel *parent) :
|
||||
QAbstractTableModel(parent),walletModel(parent),wallet(_wallet),priv(0)
|
||||
{
|
||||
columns << tr("Label") << tr("Address");
|
||||
priv = new AddressTablePriv(wallet, this);
|
||||
|
@ -19,10 +19,10 @@
|
||||
#include <QMessageBox>
|
||||
#include <QPushButton>
|
||||
|
||||
AskPassphraseDialog::AskPassphraseDialog(Mode mode, QWidget *parent) :
|
||||
AskPassphraseDialog::AskPassphraseDialog(Mode _mode, QWidget *parent) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::AskPassphraseDialog),
|
||||
mode(mode),
|
||||
mode(_mode),
|
||||
model(0),
|
||||
fCapsLock(false)
|
||||
{
|
||||
@ -85,9 +85,9 @@ AskPassphraseDialog::~AskPassphraseDialog()
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void AskPassphraseDialog::setModel(WalletModel *model)
|
||||
void AskPassphraseDialog::setModel(WalletModel *_model)
|
||||
{
|
||||
this->model = model;
|
||||
this->model = _model;
|
||||
}
|
||||
|
||||
void AskPassphraseDialog::accept()
|
||||
|
@ -79,7 +79,7 @@ const std::string BitcoinGUI::DEFAULT_UIPLATFORM =
|
||||
|
||||
const QString BitcoinGUI::DEFAULT_WALLET = "~Default";
|
||||
|
||||
BitcoinGUI::BitcoinGUI(const PlatformStyle *platformStyle, const NetworkStyle *networkStyle, QWidget *parent) :
|
||||
BitcoinGUI::BitcoinGUI(const PlatformStyle *_platformStyle, const NetworkStyle *networkStyle, QWidget *parent) :
|
||||
QMainWindow(parent),
|
||||
enableWallet(false),
|
||||
clientModel(0),
|
||||
@ -125,7 +125,7 @@ BitcoinGUI::BitcoinGUI(const PlatformStyle *platformStyle, const NetworkStyle *n
|
||||
modalOverlay(0),
|
||||
prevBlocks(0),
|
||||
spinnerFrame(0),
|
||||
platformStyle(platformStyle)
|
||||
platformStyle(_platformStyle)
|
||||
{
|
||||
/* Open CSS when configured */
|
||||
this->setStyleSheet(GUIUtil::loadStyleSheet());
|
||||
@ -159,13 +159,13 @@ BitcoinGUI::BitcoinGUI(const PlatformStyle *platformStyle, const NetworkStyle *n
|
||||
setUnifiedTitleAndToolBarOnMac(true);
|
||||
#endif
|
||||
|
||||
rpcConsole = new RPCConsole(platformStyle, 0);
|
||||
rpcConsole = new RPCConsole(_platformStyle, 0);
|
||||
helpMessageDialog = new HelpMessageDialog(this, HelpMessageDialog::cmdline);
|
||||
#ifdef ENABLE_WALLET
|
||||
if(enableWallet)
|
||||
{
|
||||
/** Create wallet frame*/
|
||||
walletFrame = new WalletFrame(platformStyle, this);
|
||||
walletFrame = new WalletFrame(_platformStyle, this);
|
||||
} else
|
||||
#endif // ENABLE_WALLET
|
||||
{
|
||||
@ -585,10 +585,10 @@ void BitcoinGUI::createToolBars()
|
||||
#endif // ENABLE_WALLET
|
||||
}
|
||||
|
||||
void BitcoinGUI::setClientModel(ClientModel *clientModel)
|
||||
void BitcoinGUI::setClientModel(ClientModel *_clientModel)
|
||||
{
|
||||
this->clientModel = clientModel;
|
||||
if(clientModel)
|
||||
this->clientModel = _clientModel;
|
||||
if(_clientModel)
|
||||
{
|
||||
// Create system tray menu (or setup the dock menu) that late to prevent users from calling actions,
|
||||
// while the client has not yet fully loaded
|
||||
@ -616,31 +616,32 @@ void BitcoinGUI::setClientModel(ClientModel *clientModel)
|
||||
|
||||
// Keep up to date with client
|
||||
updateNetworkState();
|
||||
connect(clientModel, SIGNAL(numConnectionsChanged(int)), this, SLOT(setNumConnections(int)));
|
||||
connect(clientModel, SIGNAL(networkActiveChanged(bool)), this, SLOT(setNetworkActive(bool)));
|
||||
setNumConnections(_clientModel->getNumConnections());
|
||||
connect(_clientModel, SIGNAL(numConnectionsChanged(int)), this, SLOT(setNumConnections(int)));
|
||||
connect(_clientModel, SIGNAL(networkActiveChanged(bool)), this, SLOT(setNetworkActive(bool)));
|
||||
|
||||
modalOverlay->setKnownBestHeight(clientModel->getHeaderTipHeight(), QDateTime::fromTime_t(clientModel->getHeaderTipTime()));
|
||||
setNumBlocks(clientModel->getNumBlocks(), clientModel->getLastBlockDate(), clientModel->getVerificationProgress(NULL), false);
|
||||
connect(clientModel, SIGNAL(numBlocksChanged(int,QDateTime,double,bool)), this, SLOT(setNumBlocks(int,QDateTime,double,bool)));
|
||||
modalOverlay->setKnownBestHeight(_clientModel->getHeaderTipHeight(), QDateTime::fromTime_t(_clientModel->getHeaderTipTime()));
|
||||
setNumBlocks(_clientModel->getNumBlocks(), _clientModel->getLastBlockDate(), _clientModel->getVerificationProgress(NULL), false);
|
||||
connect(_clientModel, SIGNAL(numBlocksChanged(int,QDateTime,double,bool)), this, SLOT(setNumBlocks(int,QDateTime,double,bool)));
|
||||
|
||||
connect(clientModel, SIGNAL(additionalDataSyncProgressChanged(double)), this, SLOT(setAdditionalDataSyncProgress(double)));
|
||||
connect(_clientModel, SIGNAL(additionalDataSyncProgressChanged(double)), this, SLOT(setAdditionalDataSyncProgress(double)));
|
||||
|
||||
// Receive and report messages from client model
|
||||
connect(clientModel, SIGNAL(message(QString,QString,unsigned int)), this, SLOT(message(QString,QString,unsigned int)));
|
||||
connect(_clientModel, SIGNAL(message(QString,QString,unsigned int)), this, SLOT(message(QString,QString,unsigned int)));
|
||||
|
||||
// Show progress dialog
|
||||
connect(clientModel, SIGNAL(showProgress(QString,int)), this, SLOT(showProgress(QString,int)));
|
||||
connect(_clientModel, SIGNAL(showProgress(QString,int)), this, SLOT(showProgress(QString,int)));
|
||||
|
||||
rpcConsole->setClientModel(clientModel);
|
||||
rpcConsole->setClientModel(_clientModel);
|
||||
#ifdef ENABLE_WALLET
|
||||
if(walletFrame)
|
||||
{
|
||||
walletFrame->setClientModel(clientModel);
|
||||
walletFrame->setClientModel(_clientModel);
|
||||
}
|
||||
#endif // ENABLE_WALLET
|
||||
unitDisplayControl->setOptionsModel(clientModel->getOptionsModel());
|
||||
unitDisplayControl->setOptionsModel(_clientModel->getOptionsModel());
|
||||
|
||||
OptionsModel* optionsModel = clientModel->getOptionsModel();
|
||||
OptionsModel* optionsModel = _clientModel->getOptionsModel();
|
||||
if(optionsModel)
|
||||
{
|
||||
// be aware of the tray icon disable state change reported by the OptionsModel object.
|
||||
@ -1507,17 +1508,17 @@ void UnitDisplayStatusBarControl::createContextMenu()
|
||||
}
|
||||
|
||||
/** Lets the control know about the Options Model (and its signals) */
|
||||
void UnitDisplayStatusBarControl::setOptionsModel(OptionsModel *optionsModel)
|
||||
void UnitDisplayStatusBarControl::setOptionsModel(OptionsModel *_optionsModel)
|
||||
{
|
||||
if (optionsModel)
|
||||
if (_optionsModel)
|
||||
{
|
||||
this->optionsModel = optionsModel;
|
||||
this->optionsModel = _optionsModel;
|
||||
|
||||
// be aware of a display unit change reported by the OptionsModel object.
|
||||
connect(optionsModel,SIGNAL(displayUnitChanged(int)),this,SLOT(updateDisplayUnit(int)));
|
||||
connect(_optionsModel,SIGNAL(displayUnitChanged(int)),this,SLOT(updateDisplayUnit(int)));
|
||||
|
||||
// initialize the display units label with the current value in the model.
|
||||
updateDisplayUnit(optionsModel->getDisplayUnit());
|
||||
updateDisplayUnit(_optionsModel->getDisplayUnit());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -34,9 +34,9 @@ static const int64_t nClientStartupTime = GetTime();
|
||||
static int64_t nLastHeaderTipUpdateNotification = 0;
|
||||
static int64_t nLastBlockTipUpdateNotification = 0;
|
||||
|
||||
ClientModel::ClientModel(OptionsModel *optionsModel, QObject *parent) :
|
||||
ClientModel::ClientModel(OptionsModel *_optionsModel, QObject *parent) :
|
||||
QObject(parent),
|
||||
optionsModel(optionsModel),
|
||||
optionsModel(_optionsModel),
|
||||
peerTableModel(0),
|
||||
cachedMasternodeCountString(""),
|
||||
banTableModel(0),
|
||||
|
@ -39,11 +39,11 @@ QList<CAmount> CoinControlDialog::payAmounts;
|
||||
CCoinControl* CoinControlDialog::coinControl = new CCoinControl();
|
||||
bool CoinControlDialog::fSubtractFeeFromAmount = false;
|
||||
|
||||
CoinControlDialog::CoinControlDialog(const PlatformStyle *platformStyle, QWidget *parent) :
|
||||
CoinControlDialog::CoinControlDialog(const PlatformStyle *_platformStyle, QWidget *parent) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::CoinControlDialog),
|
||||
model(0),
|
||||
platformStyle(platformStyle)
|
||||
platformStyle(_platformStyle)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
@ -163,15 +163,15 @@ CoinControlDialog::~CoinControlDialog()
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void CoinControlDialog::setModel(WalletModel *model)
|
||||
void CoinControlDialog::setModel(WalletModel *_model)
|
||||
{
|
||||
this->model = model;
|
||||
this->model = _model;
|
||||
|
||||
if(model && model->getOptionsModel() && model->getAddressTableModel())
|
||||
if(_model && _model->getOptionsModel() && _model->getAddressTableModel())
|
||||
{
|
||||
updateView();
|
||||
updateLabelLocked();
|
||||
CoinControlDialog::updateLabels(model, this);
|
||||
CoinControlDialog::updateLabels(_model, this);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -8,15 +8,15 @@
|
||||
#include <QFile>
|
||||
#include <QTextStream>
|
||||
|
||||
CSVModelWriter::CSVModelWriter(const QString &filename, QObject *parent) :
|
||||
CSVModelWriter::CSVModelWriter(const QString &_filename, QObject *parent) :
|
||||
QObject(parent),
|
||||
filename(filename), model(0)
|
||||
filename(_filename), model(0)
|
||||
{
|
||||
}
|
||||
|
||||
void CSVModelWriter::setModel(const QAbstractItemModel *model)
|
||||
void CSVModelWriter::setModel(const QAbstractItemModel *_model)
|
||||
{
|
||||
this->model = model;
|
||||
this->model = _model;
|
||||
}
|
||||
|
||||
void CSVModelWriter::addColumn(const QString &title, int column, int role)
|
||||
|
@ -12,11 +12,11 @@
|
||||
#include <QDataWidgetMapper>
|
||||
#include <QMessageBox>
|
||||
|
||||
EditAddressDialog::EditAddressDialog(Mode mode, QWidget *parent) :
|
||||
EditAddressDialog::EditAddressDialog(Mode _mode, QWidget *parent) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::EditAddressDialog),
|
||||
mapper(0),
|
||||
mode(mode),
|
||||
mode(_mode),
|
||||
model(0)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
@ -50,13 +50,13 @@ EditAddressDialog::~EditAddressDialog()
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void EditAddressDialog::setModel(AddressTableModel *model)
|
||||
void EditAddressDialog::setModel(AddressTableModel *_model)
|
||||
{
|
||||
this->model = model;
|
||||
if(!model)
|
||||
this->model = _model;
|
||||
if(!_model)
|
||||
return;
|
||||
|
||||
mapper->setModel(model);
|
||||
mapper->setModel(_model);
|
||||
mapper->addMapping(ui->labelEdit, AddressTableModel::Label);
|
||||
mapper->addMapping(ui->addressEdit, AddressTableModel::Address);
|
||||
}
|
||||
@ -138,8 +138,8 @@ QString EditAddressDialog::getAddress() const
|
||||
return address;
|
||||
}
|
||||
|
||||
void EditAddressDialog::setAddress(const QString &address)
|
||||
void EditAddressDialog::setAddress(const QString &_address)
|
||||
{
|
||||
this->address = address;
|
||||
ui->addressEdit->setText(address);
|
||||
this->address = _address;
|
||||
ui->addressEdit->setText(_address);
|
||||
}
|
||||
|
@ -501,9 +501,9 @@ void SubstituteFonts(const QString& language)
|
||||
#endif
|
||||
}
|
||||
|
||||
ToolTipToRichTextFilter::ToolTipToRichTextFilter(int size_threshold, QObject *parent) :
|
||||
ToolTipToRichTextFilter::ToolTipToRichTextFilter(int _size_threshold, QObject *parent) :
|
||||
QObject(parent),
|
||||
size_threshold(size_threshold)
|
||||
size_threshold(_size_threshold)
|
||||
{
|
||||
|
||||
}
|
||||
|
@ -64,9 +64,9 @@ private:
|
||||
|
||||
#include "intro.moc"
|
||||
|
||||
FreespaceChecker::FreespaceChecker(Intro *intro)
|
||||
FreespaceChecker::FreespaceChecker(Intro *_intro)
|
||||
{
|
||||
this->intro = intro;
|
||||
this->intro = _intro;
|
||||
}
|
||||
|
||||
void FreespaceChecker::check()
|
||||
|
@ -62,9 +62,9 @@ void NetworkStyle::rotateColors(QImage& img, const int iconColorHueShift, const
|
||||
}
|
||||
|
||||
// titleAddText needs to be const char* for tr()
|
||||
NetworkStyle::NetworkStyle(const QString &appName, const int iconColorHueShift, const int iconColorSaturationReduction, const char *titleAddText):
|
||||
appName(appName),
|
||||
titleAddText(qApp->translate("SplashScreen", titleAddText))
|
||||
NetworkStyle::NetworkStyle(const QString &_appName, const int iconColorHueShift, const int iconColorSaturationReduction, const char *_titleAddText):
|
||||
appName(_appName),
|
||||
titleAddText(qApp->translate("SplashScreen", _titleAddText))
|
||||
{
|
||||
// Allow for separate UI settings for testnets
|
||||
QApplication::setApplicationName(appName);
|
||||
|
@ -33,17 +33,17 @@
|
||||
const int FREEDESKTOP_NOTIFICATION_ICON_SIZE = 128;
|
||||
#endif
|
||||
|
||||
Notificator::Notificator(const QString &programName, QSystemTrayIcon *trayicon, QWidget *parent) :
|
||||
QObject(parent),
|
||||
parent(parent),
|
||||
programName(programName),
|
||||
Notificator::Notificator(const QString &_programName, QSystemTrayIcon *_trayIcon, QWidget *_parent) :
|
||||
QObject(_parent),
|
||||
parent(_parent),
|
||||
programName(_programName),
|
||||
mode(None),
|
||||
trayIcon(trayicon)
|
||||
trayIcon(_trayIcon)
|
||||
#ifdef USE_DBUS
|
||||
,interface(0)
|
||||
#endif
|
||||
{
|
||||
if(trayicon && trayicon->supportsMessages())
|
||||
if(_trayIcon && _trayIcon->supportsMessages())
|
||||
{
|
||||
mode = QSystemTray;
|
||||
}
|
||||
|
@ -157,22 +157,22 @@ OptionsDialog::~OptionsDialog()
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void OptionsDialog::setModel(OptionsModel *model)
|
||||
void OptionsDialog::setModel(OptionsModel *_model)
|
||||
{
|
||||
this->model = model;
|
||||
this->model = _model;
|
||||
|
||||
if(model)
|
||||
if(_model)
|
||||
{
|
||||
/* check if client restart is needed and show persistent message */
|
||||
if (model->isRestartRequired())
|
||||
if (_model->isRestartRequired())
|
||||
showRestartWarning(true);
|
||||
|
||||
QString strLabel = model->getOverriddenByCommandLine();
|
||||
QString strLabel = _model->getOverriddenByCommandLine();
|
||||
if (strLabel.isEmpty())
|
||||
strLabel = tr("none");
|
||||
ui->overriddenByCommandLineLabel->setText(strLabel);
|
||||
|
||||
mapper->setModel(model);
|
||||
mapper->setModel(_model);
|
||||
setMapper();
|
||||
mapper->toFirst();
|
||||
|
||||
|
@ -38,7 +38,7 @@ class TxViewDelegate : public QAbstractItemDelegate
|
||||
Q_OBJECT
|
||||
public:
|
||||
TxViewDelegate(const PlatformStyle *_platformStyle, QObject *parent=nullptr):
|
||||
QAbstractItemDelegate(parent), unit(BitcoinUnits::DASH),
|
||||
QAbstractItemDelegate(), unit(BitcoinUnits::DASH),
|
||||
platformStyle(_platformStyle)
|
||||
{
|
||||
|
||||
|
@ -750,9 +750,9 @@ void PaymentServer::reportSslErrors(QNetworkReply* reply, const QList<QSslError>
|
||||
Q_EMIT message(tr("Network request error"), errString, CClientUIInterface::MSG_ERROR);
|
||||
}
|
||||
|
||||
void PaymentServer::setOptionsModel(OptionsModel *optionsModel)
|
||||
void PaymentServer::setOptionsModel(OptionsModel *_optionsModel)
|
||||
{
|
||||
this->optionsModel = optionsModel;
|
||||
this->optionsModel = _optionsModel;
|
||||
}
|
||||
|
||||
void PaymentServer::handlePaymentACK(const QString& paymentACKMsg)
|
||||
|
@ -73,11 +73,11 @@ QIcon ColorizeIcon(const QString& filename, const QColor& colorbase)
|
||||
}
|
||||
|
||||
|
||||
PlatformStyle::PlatformStyle(const QString &name, bool imagesOnButtons, bool colorizeIcons, bool useExtraSpacing):
|
||||
name(name),
|
||||
imagesOnButtons(imagesOnButtons),
|
||||
colorizeIcons(colorizeIcons),
|
||||
useExtraSpacing(useExtraSpacing),
|
||||
PlatformStyle::PlatformStyle(const QString &_name, bool _imagesOnButtons, bool _colorizeIcons, bool _useExtraSpacing):
|
||||
name(_name),
|
||||
imagesOnButtons(_imagesOnButtons),
|
||||
colorizeIcons(_colorizeIcons),
|
||||
useExtraSpacing(_useExtraSpacing),
|
||||
singleColor(0,0,0),
|
||||
textColor(0,0,0)
|
||||
{
|
||||
|
@ -15,14 +15,14 @@ QValidatedLineEdit::QValidatedLineEdit(QWidget *parent) :
|
||||
connect(this, SIGNAL(textChanged(QString)), this, SLOT(markValid()));
|
||||
}
|
||||
|
||||
void QValidatedLineEdit::setValid(bool valid)
|
||||
void QValidatedLineEdit::setValid(bool _valid)
|
||||
{
|
||||
if(valid == this->valid)
|
||||
if(_valid == this->valid)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if(valid)
|
||||
if(_valid)
|
||||
{
|
||||
setStyleSheet("");
|
||||
}
|
||||
@ -30,7 +30,7 @@ void QValidatedLineEdit::setValid(bool valid)
|
||||
{
|
||||
setStyleSheet(STYLE_INVALID);
|
||||
}
|
||||
this->valid = valid;
|
||||
this->valid = _valid;
|
||||
}
|
||||
|
||||
void QValidatedLineEdit::focusInEvent(QFocusEvent *evt)
|
||||
|
@ -20,9 +20,9 @@ void QValueComboBox::setValue(const QVariant &value)
|
||||
setCurrentIndex(findData(value, role));
|
||||
}
|
||||
|
||||
void QValueComboBox::setRole(int role)
|
||||
void QValueComboBox::setRole(int _role)
|
||||
{
|
||||
this->role = role;
|
||||
this->role = _role;
|
||||
}
|
||||
|
||||
void QValueComboBox::handleSelectionChanged(int idx)
|
||||
|
@ -22,17 +22,17 @@
|
||||
#include <QScrollBar>
|
||||
#include <QTextDocument>
|
||||
|
||||
ReceiveCoinsDialog::ReceiveCoinsDialog(const PlatformStyle *platformStyle, QWidget *parent) :
|
||||
ReceiveCoinsDialog::ReceiveCoinsDialog(const PlatformStyle *_platformStyle, QWidget *parent) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::ReceiveCoinsDialog),
|
||||
columnResizingFixer(0),
|
||||
model(0),
|
||||
platformStyle(platformStyle)
|
||||
platformStyle(_platformStyle)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
QString theme = GUIUtil::getThemeName();
|
||||
|
||||
if (!platformStyle->getImagesOnButtons()) {
|
||||
if (!_platformStyle->getImagesOnButtons()) {
|
||||
ui->clearButton->setIcon(QIcon());
|
||||
ui->receiveButton->setIcon(QIcon());
|
||||
ui->showRequestButton->setIcon(QIcon());
|
||||
@ -67,21 +67,21 @@ ReceiveCoinsDialog::ReceiveCoinsDialog(const PlatformStyle *platformStyle, QWidg
|
||||
connect(ui->clearButton, SIGNAL(clicked()), this, SLOT(clear()));
|
||||
}
|
||||
|
||||
void ReceiveCoinsDialog::setModel(WalletModel *model)
|
||||
void ReceiveCoinsDialog::setModel(WalletModel *_model)
|
||||
{
|
||||
this->model = model;
|
||||
this->model = _model;
|
||||
|
||||
if(model && model->getOptionsModel())
|
||||
if(_model && _model->getOptionsModel())
|
||||
{
|
||||
model->getRecentRequestsTableModel()->sort(RecentRequestsTableModel::Date, Qt::DescendingOrder);
|
||||
connect(model->getOptionsModel(), SIGNAL(displayUnitChanged(int)), this, SLOT(updateDisplayUnit()));
|
||||
_model->getRecentRequestsTableModel()->sort(RecentRequestsTableModel::Date, Qt::DescendingOrder);
|
||||
connect(_model->getOptionsModel(), SIGNAL(displayUnitChanged(int)), this, SLOT(updateDisplayUnit()));
|
||||
updateDisplayUnit();
|
||||
|
||||
QTableView* tableView = ui->recentRequestsView;
|
||||
|
||||
tableView->verticalHeader()->hide();
|
||||
tableView->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
||||
tableView->setModel(model->getRecentRequestsTableModel());
|
||||
tableView->setModel(_model->getRecentRequestsTableModel());
|
||||
tableView->setAlternatingRowColors(true);
|
||||
tableView->setSelectionBehavior(QAbstractItemView::SelectRows);
|
||||
tableView->setSelectionMode(QAbstractItemView::ContiguousSelection);
|
||||
|
@ -109,20 +109,20 @@ ReceiveRequestDialog::~ReceiveRequestDialog()
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void ReceiveRequestDialog::setModel(OptionsModel *model)
|
||||
void ReceiveRequestDialog::setModel(OptionsModel *_model)
|
||||
{
|
||||
this->model = model;
|
||||
this->model = _model;
|
||||
|
||||
if (model)
|
||||
connect(model, SIGNAL(displayUnitChanged(int)), this, SLOT(update()));
|
||||
if (_model)
|
||||
connect(_model, SIGNAL(displayUnitChanged(int)), this, SLOT(update()));
|
||||
|
||||
// update the display unit if necessary
|
||||
update();
|
||||
}
|
||||
|
||||
void ReceiveRequestDialog::setInfo(const SendCoinsRecipient &info)
|
||||
void ReceiveRequestDialog::setInfo(const SendCoinsRecipient &_info)
|
||||
{
|
||||
this->info = info;
|
||||
this->info = _info;
|
||||
update();
|
||||
}
|
||||
|
||||
|
@ -93,8 +93,8 @@ class QtRPCTimerBase: public QObject, public RPCTimerBase
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
QtRPCTimerBase(boost::function<void(void)>& func, int64_t millis):
|
||||
func(func)
|
||||
QtRPCTimerBase(boost::function<void(void)>& _func, int64_t millis):
|
||||
func(_func)
|
||||
{
|
||||
timer.setSingleShot(true);
|
||||
connect(&timer, SIGNAL(timeout()), this, SLOT(timeout()));
|
||||
@ -345,12 +345,12 @@ void RPCExecutor::request(const QString &command)
|
||||
}
|
||||
}
|
||||
|
||||
RPCConsole::RPCConsole(const PlatformStyle *platformStyle, QWidget *parent) :
|
||||
RPCConsole::RPCConsole(const PlatformStyle *_platformStyle, QWidget *parent) :
|
||||
QWidget(parent),
|
||||
ui(new Ui::RPCConsole),
|
||||
clientModel(0),
|
||||
historyPtr(0),
|
||||
platformStyle(platformStyle),
|
||||
platformStyle(_platformStyle),
|
||||
peersTableContextMenu(0),
|
||||
banTableContextMenu(0),
|
||||
consoleFontSize(0)
|
||||
|
@ -33,19 +33,19 @@
|
||||
|
||||
#define SEND_CONFIRM_DELAY 3
|
||||
|
||||
SendCoinsDialog::SendCoinsDialog(const PlatformStyle *platformStyle, QWidget *parent) :
|
||||
SendCoinsDialog::SendCoinsDialog(const PlatformStyle *_platformStyle, QWidget *parent) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::SendCoinsDialog),
|
||||
clientModel(0),
|
||||
model(0),
|
||||
fNewRecipientAllowed(true),
|
||||
fFeeMinimized(true),
|
||||
platformStyle(platformStyle)
|
||||
platformStyle(_platformStyle)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
QString theme = GUIUtil::getThemeName();
|
||||
|
||||
if (!platformStyle->getImagesOnButtons()) {
|
||||
if (!_platformStyle->getImagesOnButtons()) {
|
||||
ui->addButton->setIcon(QIcon());
|
||||
ui->clearButton->setIcon(QIcon());
|
||||
ui->sendButton->setIcon(QIcon());
|
||||
@ -146,40 +146,40 @@ SendCoinsDialog::SendCoinsDialog(const PlatformStyle *platformStyle, QWidget *pa
|
||||
minimizeFeeSection(settings.value("fFeeSectionMinimized").toBool());
|
||||
}
|
||||
|
||||
void SendCoinsDialog::setClientModel(ClientModel *clientModel)
|
||||
void SendCoinsDialog::setClientModel(ClientModel *_clientModel)
|
||||
{
|
||||
this->clientModel = clientModel;
|
||||
this->clientModel = _clientModel;
|
||||
|
||||
if (clientModel) {
|
||||
connect(clientModel, SIGNAL(numBlocksChanged(int,QDateTime,double,bool)), this, SLOT(updateSmartFeeLabel()));
|
||||
if (_clientModel) {
|
||||
connect(_clientModel, SIGNAL(numBlocksChanged(int,QDateTime,double,bool)), this, SLOT(updateSmartFeeLabel()));
|
||||
}
|
||||
}
|
||||
|
||||
void SendCoinsDialog::setModel(WalletModel *model)
|
||||
void SendCoinsDialog::setModel(WalletModel *_model)
|
||||
{
|
||||
this->model = model;
|
||||
this->model = _model;
|
||||
|
||||
if(model && model->getOptionsModel())
|
||||
if(_model && _model->getOptionsModel())
|
||||
{
|
||||
for(int i = 0; i < ui->entries->count(); ++i)
|
||||
{
|
||||
SendCoinsEntry *entry = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(i)->widget());
|
||||
if(entry)
|
||||
{
|
||||
entry->setModel(model);
|
||||
entry->setModel(_model);
|
||||
}
|
||||
}
|
||||
|
||||
setBalance(model->getBalance(), model->getUnconfirmedBalance(), model->getImmatureBalance(), model->getAnonymizedBalance(),
|
||||
model->getWatchBalance(), model->getWatchUnconfirmedBalance(), model->getWatchImmatureBalance());
|
||||
connect(model, SIGNAL(balanceChanged(CAmount,CAmount,CAmount,CAmount,CAmount,CAmount,CAmount)), this, SLOT(setBalance(CAmount,CAmount,CAmount,CAmount,CAmount,CAmount,CAmount)));
|
||||
connect(model->getOptionsModel(), SIGNAL(displayUnitChanged(int)), this, SLOT(updateDisplayUnit()));
|
||||
setBalance(_model->getBalance(), _model->getUnconfirmedBalance(), _model->getImmatureBalance(), _model->getAnonymizedBalance(),
|
||||
_model->getWatchBalance(), _model->getWatchUnconfirmedBalance(), _model->getWatchImmatureBalance());
|
||||
connect(_model, SIGNAL(balanceChanged(CAmount,CAmount,CAmount,CAmount,CAmount,CAmount,CAmount)), this, SLOT(setBalance(CAmount,CAmount,CAmount,CAmount,CAmount,CAmount,CAmount)));
|
||||
connect(_model->getOptionsModel(), SIGNAL(displayUnitChanged(int)), this, SLOT(updateDisplayUnit()));
|
||||
updateDisplayUnit();
|
||||
|
||||
// Coin Control
|
||||
connect(model->getOptionsModel(), SIGNAL(displayUnitChanged(int)), this, SLOT(coinControlUpdateLabels()));
|
||||
connect(model->getOptionsModel(), SIGNAL(coinControlFeaturesChanged(bool)), this, SLOT(coinControlFeatureChanged(bool)));
|
||||
ui->frameCoinControl->setVisible(model->getOptionsModel()->getCoinControlFeatures());
|
||||
connect(_model->getOptionsModel(), SIGNAL(displayUnitChanged(int)), this, SLOT(coinControlUpdateLabels()));
|
||||
connect(_model->getOptionsModel(), SIGNAL(coinControlFeaturesChanged(bool)), this, SLOT(coinControlFeatureChanged(bool)));
|
||||
ui->frameCoinControl->setVisible(_model->getOptionsModel()->getCoinControlFeatures());
|
||||
coinControlUpdateLabels();
|
||||
|
||||
// fee section
|
||||
@ -941,9 +941,9 @@ void SendCoinsDialog::coinControlUpdateLabels()
|
||||
}
|
||||
}
|
||||
|
||||
SendConfirmationDialog::SendConfirmationDialog(const QString &title, const QString &text, int secDelay,
|
||||
SendConfirmationDialog::SendConfirmationDialog(const QString &title, const QString &text, int _secDelay,
|
||||
QWidget *parent) :
|
||||
QMessageBox(QMessageBox::Question, title, text, QMessageBox::Yes | QMessageBox::Cancel, parent), secDelay(secDelay)
|
||||
QMessageBox(QMessageBox::Question, title, text, QMessageBox::Yes | QMessageBox::Cancel, parent), secDelay(_secDelay)
|
||||
{
|
||||
setDefaultButton(QMessageBox::Cancel);
|
||||
yesButton = button(QMessageBox::Yes);
|
||||
|
@ -16,11 +16,11 @@
|
||||
#include <QApplication>
|
||||
#include <QClipboard>
|
||||
|
||||
SendCoinsEntry::SendCoinsEntry(const PlatformStyle *platformStyle, QWidget *parent) :
|
||||
SendCoinsEntry::SendCoinsEntry(const PlatformStyle *_platformStyle, QWidget *parent) :
|
||||
QStackedWidget(parent),
|
||||
ui(new Ui::SendCoinsEntry),
|
||||
model(0),
|
||||
platformStyle(platformStyle)
|
||||
platformStyle(_platformStyle)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
@ -83,12 +83,12 @@ void SendCoinsEntry::on_payTo_textChanged(const QString &address)
|
||||
updateLabel(address);
|
||||
}
|
||||
|
||||
void SendCoinsEntry::setModel(WalletModel *model)
|
||||
void SendCoinsEntry::setModel(WalletModel *_model)
|
||||
{
|
||||
this->model = model;
|
||||
this->model = _model;
|
||||
|
||||
if (model && model->getOptionsModel())
|
||||
connect(model->getOptionsModel(), SIGNAL(displayUnitChanged(int)), this, SLOT(updateDisplayUnit()));
|
||||
if (_model && _model->getOptionsModel())
|
||||
connect(_model->getOptionsModel(), SIGNAL(displayUnitChanged(int)), this, SLOT(updateDisplayUnit()));
|
||||
|
||||
clear();
|
||||
}
|
||||
|
@ -21,11 +21,11 @@
|
||||
|
||||
#include <QClipboard>
|
||||
|
||||
SignVerifyMessageDialog::SignVerifyMessageDialog(const PlatformStyle *platformStyle, QWidget *parent) :
|
||||
SignVerifyMessageDialog::SignVerifyMessageDialog(const PlatformStyle *_platformStyle, QWidget *parent) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::SignVerifyMessageDialog),
|
||||
model(0),
|
||||
platformStyle(platformStyle)
|
||||
platformStyle(_platformStyle)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
@ -73,9 +73,9 @@ SignVerifyMessageDialog::~SignVerifyMessageDialog()
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void SignVerifyMessageDialog::setModel(WalletModel *model)
|
||||
void SignVerifyMessageDialog::setModel(WalletModel *_model)
|
||||
{
|
||||
this->model = model;
|
||||
this->model = _model;
|
||||
}
|
||||
|
||||
void SignVerifyMessageDialog::setAddress_SM(const QString &address)
|
||||
|
@ -66,9 +66,9 @@ void TransactionFilterProxy::setDateRange(const QDateTime &from, const QDateTime
|
||||
invalidateFilter();
|
||||
}
|
||||
|
||||
void TransactionFilterProxy::setAddressPrefix(const QString &addrPrefix)
|
||||
void TransactionFilterProxy::setAddressPrefix(const QString &_addrPrefix)
|
||||
{
|
||||
this->addrPrefix = addrPrefix;
|
||||
this->addrPrefix = _addrPrefix;
|
||||
invalidateFilter();
|
||||
}
|
||||
|
||||
@ -95,9 +95,9 @@ void TransactionFilterProxy::setLimit(int limit)
|
||||
this->limitRows = limit;
|
||||
}
|
||||
|
||||
void TransactionFilterProxy::setShowInactive(bool showInactive)
|
||||
void TransactionFilterProxy::setShowInactive(bool _showInactive)
|
||||
{
|
||||
this->showInactive = showInactive;
|
||||
this->showInactive = _showInactive;
|
||||
invalidateFilter();
|
||||
}
|
||||
|
||||
|
@ -97,16 +97,16 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
TransactionRecord(uint256 hash, qint64 time):
|
||||
hash(hash), time(time), type(Other), address(""), debit(0),
|
||||
TransactionRecord(uint256 _hash, qint64 _time):
|
||||
hash(_hash), time(_time), type(Other), address(""), debit(0),
|
||||
credit(0), idx(0)
|
||||
{
|
||||
}
|
||||
|
||||
TransactionRecord(uint256 hash, qint64 time,
|
||||
Type type, const std::string &address,
|
||||
const CAmount& debit, const CAmount& credit):
|
||||
hash(hash), time(time), type(type), address(address), debit(debit), credit(credit),
|
||||
TransactionRecord(uint256 _hash, qint64 _time,
|
||||
Type _type, const std::string &_address,
|
||||
const CAmount& _debit, const CAmount& _credit):
|
||||
hash(_hash), time(_time), type(_type), address(_address), debit(_debit), credit(_credit),
|
||||
idx(0)
|
||||
{
|
||||
}
|
||||
|
@ -59,9 +59,9 @@ struct TxLessThan
|
||||
class TransactionTablePriv
|
||||
{
|
||||
public:
|
||||
TransactionTablePriv(CWallet *wallet, TransactionTableModel *parent) :
|
||||
wallet(wallet),
|
||||
parent(parent)
|
||||
TransactionTablePriv(CWallet *_wallet, TransactionTableModel *_parent) :
|
||||
wallet(_wallet),
|
||||
parent(_parent)
|
||||
{
|
||||
}
|
||||
|
||||
@ -235,13 +235,13 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
TransactionTableModel::TransactionTableModel(const PlatformStyle *platformStyle, CWallet* wallet, WalletModel *parent):
|
||||
TransactionTableModel::TransactionTableModel(const PlatformStyle *_platformStyle, CWallet* _wallet, WalletModel *parent):
|
||||
QAbstractTableModel(parent),
|
||||
wallet(wallet),
|
||||
wallet(_wallet),
|
||||
walletModel(parent),
|
||||
priv(new TransactionTablePriv(wallet, this)),
|
||||
priv(new TransactionTablePriv(_wallet, this)),
|
||||
fProcessingQueuedTransactions(false),
|
||||
platformStyle(platformStyle)
|
||||
platformStyle(_platformStyle)
|
||||
{
|
||||
columns << QString() << QString() << tr("Date") << tr("Type") << tr("Address / Label") << BitcoinUnits::getAmountColumnTitle(walletModel->getOptionsModel()->getDisplayUnit());
|
||||
priv->refreshWallet();
|
||||
@ -738,8 +738,8 @@ struct TransactionNotification
|
||||
{
|
||||
public:
|
||||
TransactionNotification() {}
|
||||
TransactionNotification(uint256 hash, ChangeType status, bool showTransaction):
|
||||
hash(hash), status(status), showTransaction(showTransaction) {}
|
||||
TransactionNotification(uint256 _hash, ChangeType _status, bool _showTransaction):
|
||||
hash(_hash), status(_status), showTransaction(_showTransaction) {}
|
||||
|
||||
void invoke(QObject *ttm)
|
||||
{
|
||||
|
@ -199,14 +199,14 @@ TransactionView::TransactionView(const PlatformStyle *platformStyle, QWidget *pa
|
||||
connect(showDetailsAction, SIGNAL(triggered()), this, SLOT(showDetails()));
|
||||
}
|
||||
|
||||
void TransactionView::setModel(WalletModel *model)
|
||||
void TransactionView::setModel(WalletModel *_model)
|
||||
{
|
||||
QSettings settings;
|
||||
this->model = model;
|
||||
if(model)
|
||||
this->model = _model;
|
||||
if(_model)
|
||||
{
|
||||
transactionProxyModel = new TransactionFilterProxy(this);
|
||||
transactionProxyModel->setSourceModel(model->getTransactionTableModel());
|
||||
transactionProxyModel->setSourceModel(_model->getTransactionTableModel());
|
||||
transactionProxyModel->setDynamicSortFilter(true);
|
||||
transactionProxyModel->setSortCaseSensitivity(Qt::CaseInsensitive);
|
||||
transactionProxyModel->setFilterCaseSensitivity(Qt::CaseInsensitive);
|
||||
@ -233,10 +233,10 @@ void TransactionView::setModel(WalletModel *model)
|
||||
|
||||
columnResizingFixer = new GUIUtil::TableViewLastColumnResizingFixer(transactionView, AMOUNT_MINIMUM_COLUMN_WIDTH, MINIMUM_COLUMN_WIDTH, this);
|
||||
|
||||
if (model->getOptionsModel())
|
||||
if (_model->getOptionsModel())
|
||||
{
|
||||
// Add third party transaction URLs to context menu
|
||||
QStringList listUrls = model->getOptionsModel()->getThirdPartyTxUrls().split("|", QString::SkipEmptyParts);
|
||||
QStringList listUrls = _model->getOptionsModel()->getThirdPartyTxUrls().split("|", QString::SkipEmptyParts);
|
||||
for (int i = 0; i < listUrls.size(); ++i)
|
||||
{
|
||||
QString host = QUrl(listUrls[i].trimmed(), QUrl::StrictMode).host();
|
||||
@ -253,10 +253,10 @@ void TransactionView::setModel(WalletModel *model)
|
||||
}
|
||||
|
||||
// show/hide column Watch-only
|
||||
updateWatchOnlyColumn(model->haveWatchOnly());
|
||||
updateWatchOnlyColumn(_model->haveWatchOnly());
|
||||
|
||||
// Watch-only signal
|
||||
connect(model, SIGNAL(notifyWatchonlyChanged(bool)), this, SLOT(updateWatchOnlyColumn(bool)));
|
||||
connect(_model, SIGNAL(notifyWatchonlyChanged(bool)), this, SLOT(updateWatchOnlyColumn(bool)));
|
||||
|
||||
// Update transaction list with persisted settings
|
||||
chooseType(settings.value("transactionType").toInt());
|
||||
|
@ -12,10 +12,10 @@
|
||||
#include <QHBoxLayout>
|
||||
#include <QLabel>
|
||||
|
||||
WalletFrame::WalletFrame(const PlatformStyle *platformStyle, BitcoinGUI *_gui) :
|
||||
WalletFrame::WalletFrame(const PlatformStyle *_platformStyle, BitcoinGUI *_gui) :
|
||||
QFrame(_gui),
|
||||
gui(_gui),
|
||||
platformStyle(platformStyle)
|
||||
platformStyle(_platformStyle)
|
||||
{
|
||||
// Leave HBox hook for adding a list view later
|
||||
QHBoxLayout *walletFrameLayout = new QHBoxLayout(this);
|
||||
@ -33,9 +33,9 @@ WalletFrame::~WalletFrame()
|
||||
{
|
||||
}
|
||||
|
||||
void WalletFrame::setClientModel(ClientModel *clientModel)
|
||||
void WalletFrame::setClientModel(ClientModel *_clientModel)
|
||||
{
|
||||
this->clientModel = clientModel;
|
||||
this->clientModel = _clientModel;
|
||||
}
|
||||
|
||||
bool WalletFrame::addWallet(const QString& name, WalletModel *walletModel)
|
||||
|
@ -34,8 +34,8 @@
|
||||
|
||||
#include <boost/foreach.hpp>
|
||||
|
||||
WalletModel::WalletModel(const PlatformStyle *platformStyle, CWallet *wallet, OptionsModel *optionsModel, QObject *parent) :
|
||||
QObject(parent), wallet(wallet), optionsModel(optionsModel), addressTableModel(0),
|
||||
WalletModel::WalletModel(const PlatformStyle *platformStyle, CWallet *_wallet, OptionsModel *_optionsModel, QObject *parent) :
|
||||
QObject(parent), wallet(_wallet), optionsModel(_optionsModel), addressTableModel(0),
|
||||
transactionTableModel(0),
|
||||
recentRequestsTableModel(0),
|
||||
cachedBalance(0),
|
||||
@ -605,11 +605,11 @@ WalletModel::UnlockContext WalletModel::requestUnlock(bool fForMixingOnly)
|
||||
return UnlockContext(this, !fInvalid, !fKeepUnlocked, was_mixing);
|
||||
}
|
||||
|
||||
WalletModel::UnlockContext::UnlockContext(WalletModel *wallet, bool valid, bool was_locked, bool was_mixing):
|
||||
wallet(wallet),
|
||||
valid(valid),
|
||||
was_locked(was_locked),
|
||||
was_mixing(was_mixing)
|
||||
WalletModel::UnlockContext::UnlockContext(WalletModel *_wallet, bool _valid, bool _was_locked, bool _was_mixing):
|
||||
wallet(_wallet),
|
||||
valid(_valid),
|
||||
was_locked(_was_locked),
|
||||
was_mixing(_was_mixing)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -41,8 +41,8 @@ class SendCoinsRecipient
|
||||
{
|
||||
public:
|
||||
explicit SendCoinsRecipient() : amount(0), fSubtractFeeFromAmount(false), nVersion(SendCoinsRecipient::CURRENT_VERSION) { }
|
||||
explicit SendCoinsRecipient(const QString &addr, const QString &label, const CAmount& amount, const QString &message):
|
||||
address(addr), label(label), amount(amount), message(message), fSubtractFeeFromAmount(false), nVersion(SendCoinsRecipient::CURRENT_VERSION) {}
|
||||
explicit SendCoinsRecipient(const QString &addr, const QString &_label, const CAmount& _amount, const QString &_message):
|
||||
address(addr), label(_label), amount(_amount), message(_message), fSubtractFeeFromAmount(false), nVersion(SendCoinsRecipient::CURRENT_VERSION) {}
|
||||
|
||||
// If from an unauthenticated payment request, this is used for storing
|
||||
// the addresses, e.g. address-A<br />address-B<br />address-C.
|
||||
@ -154,8 +154,8 @@ public:
|
||||
// Return status record for SendCoins, contains error id + information
|
||||
struct SendCoinsReturn
|
||||
{
|
||||
SendCoinsReturn(StatusCode status = OK):
|
||||
status(status) {}
|
||||
SendCoinsReturn(StatusCode _status = OK):
|
||||
status(_status) {}
|
||||
StatusCode status;
|
||||
};
|
||||
|
||||
|
@ -6,8 +6,8 @@
|
||||
|
||||
#include "wallet/wallet.h"
|
||||
|
||||
WalletModelTransaction::WalletModelTransaction(const QList<SendCoinsRecipient> &recipients) :
|
||||
recipients(recipients),
|
||||
WalletModelTransaction::WalletModelTransaction(const QList<SendCoinsRecipient> &_recipients) :
|
||||
recipients(_recipients),
|
||||
walletTransaction(0),
|
||||
keyChange(0),
|
||||
fee(0)
|
||||
|
@ -32,11 +32,11 @@
|
||||
#include <QSettings>
|
||||
#include <QVBoxLayout>
|
||||
|
||||
WalletView::WalletView(const PlatformStyle *platformStyle, QWidget *parent):
|
||||
WalletView::WalletView(const PlatformStyle *_platformStyle, QWidget *parent):
|
||||
QStackedWidget(parent),
|
||||
clientModel(0),
|
||||
walletModel(0),
|
||||
platformStyle(platformStyle)
|
||||
platformStyle(_platformStyle)
|
||||
{
|
||||
// Create tabs
|
||||
overviewPage = new OverviewPage(platformStyle);
|
||||
@ -132,55 +132,55 @@ void WalletView::setBitcoinGUI(BitcoinGUI *gui)
|
||||
}
|
||||
}
|
||||
|
||||
void WalletView::setClientModel(ClientModel *clientModel)
|
||||
void WalletView::setClientModel(ClientModel *_clientModel)
|
||||
{
|
||||
this->clientModel = clientModel;
|
||||
this->clientModel = _clientModel;
|
||||
|
||||
overviewPage->setClientModel(clientModel);
|
||||
sendCoinsPage->setClientModel(clientModel);
|
||||
overviewPage->setClientModel(_clientModel);
|
||||
sendCoinsPage->setClientModel(_clientModel);
|
||||
QSettings settings;
|
||||
if (settings.value("fShowMasternodesTab").toBool()) {
|
||||
masternodeListPage->setClientModel(clientModel);
|
||||
masternodeListPage->setClientModel(_clientModel);
|
||||
}
|
||||
}
|
||||
|
||||
void WalletView::setWalletModel(WalletModel *walletModel)
|
||||
void WalletView::setWalletModel(WalletModel *_walletModel)
|
||||
{
|
||||
this->walletModel = walletModel;
|
||||
this->walletModel = _walletModel;
|
||||
|
||||
// Put transaction list in tabs
|
||||
transactionView->setModel(walletModel);
|
||||
overviewPage->setWalletModel(walletModel);
|
||||
transactionView->setModel(_walletModel);
|
||||
overviewPage->setWalletModel(_walletModel);
|
||||
QSettings settings;
|
||||
if (settings.value("fShowMasternodesTab").toBool()) {
|
||||
masternodeListPage->setWalletModel(walletModel);
|
||||
masternodeListPage->setWalletModel(_walletModel);
|
||||
}
|
||||
receiveCoinsPage->setModel(walletModel);
|
||||
sendCoinsPage->setModel(walletModel);
|
||||
usedReceivingAddressesPage->setModel(walletModel->getAddressTableModel());
|
||||
usedSendingAddressesPage->setModel(walletModel->getAddressTableModel());
|
||||
receiveCoinsPage->setModel(_walletModel);
|
||||
sendCoinsPage->setModel(_walletModel);
|
||||
usedReceivingAddressesPage->setModel(_walletModel->getAddressTableModel());
|
||||
usedSendingAddressesPage->setModel(_walletModel->getAddressTableModel());
|
||||
|
||||
if (walletModel)
|
||||
if (_walletModel)
|
||||
{
|
||||
// Receive and pass through messages from wallet model
|
||||
connect(walletModel, SIGNAL(message(QString,QString,unsigned int)), this, SIGNAL(message(QString,QString,unsigned int)));
|
||||
connect(_walletModel, SIGNAL(message(QString,QString,unsigned int)), this, SIGNAL(message(QString,QString,unsigned int)));
|
||||
|
||||
// Handle changes in encryption status
|
||||
connect(walletModel, SIGNAL(encryptionStatusChanged(int)), this, SIGNAL(encryptionStatusChanged(int)));
|
||||
connect(_walletModel, SIGNAL(encryptionStatusChanged(int)), this, SIGNAL(encryptionStatusChanged(int)));
|
||||
updateEncryptionStatus();
|
||||
|
||||
// update HD status
|
||||
Q_EMIT hdEnabledStatusChanged(walletModel->hdEnabled());
|
||||
Q_EMIT hdEnabledStatusChanged(_walletModel->hdEnabled());
|
||||
|
||||
// Balloon pop-up for new transaction
|
||||
connect(walletModel->getTransactionTableModel(), SIGNAL(rowsInserted(QModelIndex,int,int)),
|
||||
connect(_walletModel->getTransactionTableModel(), SIGNAL(rowsInserted(QModelIndex,int,int)),
|
||||
this, SLOT(processNewTransaction(QModelIndex,int,int)));
|
||||
|
||||
// Ask for passphrase if needed
|
||||
connect(walletModel, SIGNAL(requireUnlock(bool)), this, SLOT(unlockWallet(bool)));
|
||||
connect(_walletModel, SIGNAL(requireUnlock(bool)), this, SLOT(unlockWallet(bool)));
|
||||
|
||||
// Show progress dialog
|
||||
connect(walletModel, SIGNAL(showProgress(QString,int)), this, SLOT(showProgress(QString,int)));
|
||||
connect(_walletModel, SIGNAL(showProgress(QString,int)), this, SLOT(showProgress(QString,int)));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user