From 7f71823d10318a5a4f8232629bb09186bc79d2b5 Mon Sep 17 00:00:00 2001 From: random-zebra Date: Sat, 10 Apr 2021 15:13:10 +0200 Subject: [PATCH] [Cleanup] Remove unused optionsdialog --- src/Makefile.qt.include | 4 - src/qt/CMakeLists.txt | 1 - src/qt/forms/optionsdialog.ui | 845 ---------------------------------- src/qt/optionsdialog.cpp | 346 -------------- src/qt/optionsdialog.h | 67 --- 5 files changed, 1263 deletions(-) delete mode 100644 src/qt/forms/optionsdialog.ui delete mode 100644 src/qt/optionsdialog.cpp delete mode 100644 src/qt/optionsdialog.h diff --git a/src/Makefile.qt.include b/src/Makefile.qt.include index eb24d907ae81bf..c0deb6a9d3fe88 100644 --- a/src/Makefile.qt.include +++ b/src/Makefile.qt.include @@ -16,7 +16,6 @@ QT_FORMS_UI = \ qt/forms/helpmessagedialog.ui \ qt/forms/intro.ui \ qt/forms/openuridialog.ui \ - qt/forms/optionsdialog.ui \ qt/forms/rpcconsole.ui \ qt/pivx/forms/loadingdialog.ui \ qt/pivx/forms/snackbar.ui \ @@ -85,7 +84,6 @@ QT_MOC_CPP = \ qt/moc_macnotificationhandler.cpp \ qt/moc_notificator.cpp \ qt/moc_openuridialog.cpp \ - qt/moc_optionsdialog.cpp \ qt/moc_optionsmodel.cpp \ qt/moc_peertablemodel.cpp \ qt/moc_paymentserver.cpp \ @@ -192,7 +190,6 @@ BITCOIN_QT_H = \ qt/networkstyle.h \ qt/notificator.h \ qt/openuridialog.h \ - qt/optionsdialog.h \ qt/optionsmodel.h \ qt/paymentrequestplus.h \ qt/paymentserver.h \ @@ -505,7 +502,6 @@ BITCOIN_QT_BASE_CPP = \ qt/intro.cpp \ qt/networkstyle.cpp \ qt/notificator.cpp \ - qt/optionsdialog.cpp \ qt/optionsmodel.cpp \ qt/peertablemodel.cpp \ qt/platformstyle.cpp \ diff --git a/src/qt/CMakeLists.txt b/src/qt/CMakeLists.txt index 54d8423b823870..27754f121b2479 100644 --- a/src/qt/CMakeLists.txt +++ b/src/qt/CMakeLists.txt @@ -87,7 +87,6 @@ SET(QT_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/intro.cpp ${CMAKE_CURRENT_SOURCE_DIR}/networkstyle.cpp ${CMAKE_CURRENT_SOURCE_DIR}/notificator.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/optionsdialog.cpp ${CMAKE_CURRENT_SOURCE_DIR}/optionsmodel.cpp ${CMAKE_CURRENT_SOURCE_DIR}/peertablemodel.cpp ${CMAKE_CURRENT_SOURCE_DIR}/platformstyle.cpp diff --git a/src/qt/forms/optionsdialog.ui b/src/qt/forms/optionsdialog.ui deleted file mode 100644 index 02ba6afd619184..00000000000000 --- a/src/qt/forms/optionsdialog.ui +++ /dev/null @@ -1,845 +0,0 @@ - - - OptionsDialog - - - - 0 - 0 - 576 - 442 - - - - Options - - - true - - - - - - 0 - - - - &Main - - - - - - Automatically start PIVX after logging in to the system. - - - &Start PIVX on system login - - - - - - - - - Size of &database cache - - - Qt::PlainText - - - databaseCache - - - - - - - - - - MB - - - Qt::PlainText - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - - - Number of script &verification threads - - - Qt::PlainText - - - threadsScriptVerif - - - - - - - (0 = auto, <0 = leave that many cores free) - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - Qt::Vertical - - - - 20 - 40 - - - - - - - - - 0 - - - - - - - Enable automatic minting of PIV units to zPIV - - - Qt::LeftToRight - - - Enable zPIV Automint - - - - - - - Enable automatic zPIV minting from specific addresses - - - Qt::LeftToRight - - - Enable Automint Addresses - - - - - - - - - - - Percentage of incoming PIV which get automatically converted to zPIV via Zerocoin Protocol (min: 10%) - - - Percentage of autominted zPIV - - - - - - - 1 - - - 100 - - - - - - - - - QLayout::SetFixedSize - - - - - - 16777215 - 16777215 - - - - Wait with automatic conversion to Zerocoin until enough PIV for this denomination is available - - - Preferred Automint zPIV Denomination - - - - - - - - 16777215 - 27 - - - - Wait with automatic conversion to Zerocoin until enough PIV for this denomination is available - - - 9 - - - 9 - - - - - - - - - - - - - W&allet - - - - - - - - Stake split threshold: - - - - - - - 1 - - - 999999 - - - - - - - - - Expert - - - - - - Whether to show coin control features or not. - - - Enable coin &control features - - - - - - - Show additional tab listing all your masternodes in first sub-tab<br/>and all masternodes on the network in second sub-tab. - - - Show Masternodes Tab - - - - - - - If you disable the spending of unconfirmed change, the change from a transaction<br/>cannot be used until that transaction has at least one confirmation.<br/>This also affects how your balance is computed. - - - &Spend unconfirmed change - - - - - - - - - - Qt::Vertical - - - - 20 - 40 - - - - - - - - - &Network - - - - - - Automatically open the PIVX client port on the router. This only works when your router supports UPnP and it is enabled. - - - Map port using &UPnP - - - - - - - Accept connections from outside - - - Allow incoming connections - - - - - - - Connect to the PIVX network through a SOCKS5 proxy. - - - &Connect through SOCKS5 proxy (default proxy): - - - - - - - - - Proxy &IP: - - - Qt::PlainText - - - proxyIp - - - - - - - - 140 - 0 - - - - - 140 - 16777215 - - - - IP address of the proxy (e.g. IPv4: 127.0.0.1 / IPv6: ::1) - - - - - - - &Port: - - - Qt::PlainText - - - proxyPort - - - - - - - - 55 - 0 - - - - - 55 - 16777215 - - - - Port of the proxy (e.g. 9050) - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - Qt::Vertical - - - - 20 - 40 - - - - - - - - - &Window - - - - - - Show only a tray icon after minimizing the window. - - - &Minimize to the tray instead of the taskbar - - - - - - - Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu. - - - M&inimize on close - - - - - - - Qt::Vertical - - - - 20 - 40 - - - - - - - - - &Display - - - - - - - - User Interface &language: - - - Qt::PlainText - - - lang - - - - - - - The user interface language can be set here. This setting will take effect after restarting PIVX. - - - - - - - - - - - - - - - - - - - - - Language missing or translation incomplete? Help contributing translations here: -https://www.transifex.com/pivx-project/pivx-project-translations - - - true - - - true - - - Qt::TextBrowserInteraction - - - - - - - - - User Interface Theme: - - - - - - - - - - - - - 0 - - - - - Qt::Horizontal - - - - - - - - - Unit to show amounts in: - - - Qt::PlainText - - - - - - - Choose the default subdivision unit to show in the interface and when sending coins. - - - - - - - - - - - Decimal digits - - - - - - - - - - - - - - Hide empty balances - - - Qt::LeftToRight - - - Hide empty balances - - - - - - - Hide orphan stakes in transaction lists - - - Hide orphan stakes - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - - - Third party URLs (e.g. a block explorer) that appear in the transactions tab as context menu items. %s in the URL is replaced by transaction hash. Multiple URLs are separated by vertical bar |. - - - Third party transaction URLs - - - - - - - Third party URLs (e.g. a block explorer) that appear in the transactions tab as context menu items. %s in the URL is replaced by transaction hash. Multiple URLs are separated by vertical bar |. - - - - - - - - - - - - Qt::Vertical - - - - 20 - 40 - - - - - - - - - - - - - - - - - Active command-line options that override above options: - - - Qt::PlainText - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - - - - Qt::PlainText - - - true - - - - - - - - - - - - Reset all client options to default. - - - &Reset Options - - - false - - - - - - - Qt::Horizontal - - - - 40 - 48 - - - - - - - - - 200 - 0 - - - - - 75 - true - - - - - - - Qt::PlainText - - - true - - - - - - - Qt::Horizontal - - - - 40 - 48 - - - - - - - - &OK - - - false - - - true - - - - - - - &Cancel - - - false - - - - - - - - - - QValidatedLineEdit - QLineEdit -
qvalidatedlineedit.h
-
- - QValueComboBox - QComboBox -
qvaluecombobox.h
-
-
- - -
diff --git a/src/qt/optionsdialog.cpp b/src/qt/optionsdialog.cpp deleted file mode 100644 index 3f24ef06217c9b..00000000000000 --- a/src/qt/optionsdialog.cpp +++ /dev/null @@ -1,346 +0,0 @@ -// Copyright (c) 2011-2013 The Bitcoin developers -// Copyright (c) 2017-2020 The PIVX developers -// Distributed under the MIT/X11 software license, see the accompanying -// file COPYING or http://www.opensource.org/licenses/mit-license.php. - -#if defined(HAVE_CONFIG_H) -#include "config/pivx-config.h" -#endif - -#include "optionsdialog.h" -#include "ui_optionsdialog.h" - -#include "bitcoinunits.h" -#include "guiutil.h" -#include "optionsmodel.h" - -#include "netbase.h" -#include "txdb.h" // for -dbcache defaults - -#ifdef ENABLE_WALLET -#include "wallet/wallet.h" // for CWallet::minTxFee -#endif - -#include - -#include -#include -#include -#include -#include -#include - -OptionsDialog::OptionsDialog(QWidget* parent, bool enableWallet) : QDialog(parent, Qt::WindowSystemMenuHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint), - ui(new Ui::OptionsDialog), - model(0), - mapper(0), - fProxyIpValid(true) -{ - ui->setupUi(this); - GUIUtil::restoreWindowGeometry("nOptionsDialogWindow", this->size(), this); - - /* Main elements init */ - ui->databaseCache->setMinimum(nMinDbCache); - ui->databaseCache->setMaximum(nMaxDbCache); - ui->threadsScriptVerif->setMinimum(-GetNumCores()); - ui->threadsScriptVerif->setMaximum(MAX_SCRIPTCHECK_THREADS); - - /* Network elements init */ -#ifndef USE_UPNP - ui->mapPortUpnp->setEnabled(false); -#endif - - ui->proxyIp->setEnabled(false); - ui->proxyPort->setEnabled(false); - ui->proxyPort->setValidator(new QIntValidator(1, 65535, this)); - - connect(ui->connectSocks, &QCheckBox::toggled, ui->proxyIp, &QWidget::setEnabled); - connect(ui->connectSocks, &QCheckBox::toggled, ui->proxyPort, &QWidget::setEnabled); - - ui->proxyIp->installEventFilter(this); - ui->proxyPort->installEventFilter(this); - -/* Window elements init */ -#ifdef Q_OS_MAC - /* remove Window tab on Mac */ - ui->tabWidget->removeTab(ui->tabWidget->indexOf(ui->tabWindow)); -#endif - - /* remove Wallet tab in case of -disablewallet */ - if (!enableWallet) { - ui->tabWidget->removeTab(ui->tabWidget->indexOf(ui->tabWallet)); - } - - /* Display elements init */ - - /* Number of displayed decimal digits selector */ - QString digits; - for (int index = 2; index <= 8; index++) { - digits.setNum(index); - ui->digits->addItem(digits, digits); - } - - /* Theme selector static themes */ - ui->theme->addItem(QString("Default"), QVariant("default")); - - /* Preferred Zerocoin Denominations */ - ui->preferredDenom->addItem(QString(tr("Any")), QVariant("0")); - ui->preferredDenom->addItem(QString("1"), QVariant("1")); - ui->preferredDenom->addItem(QString("5"), QVariant("5")); - ui->preferredDenom->addItem(QString("10"), QVariant("10")); - ui->preferredDenom->addItem(QString("50"), QVariant("50")); - ui->preferredDenom->addItem(QString("100"), QVariant("100")); - ui->preferredDenom->addItem(QString("500"), QVariant("500")); - ui->preferredDenom->addItem(QString("1000"), QVariant("1000")); - ui->preferredDenom->addItem(QString("5000"), QVariant("5000")); - - /* Theme selector external themes */ - fs::path pathAddr = GetDataDir() / "themes"; - QDir dir(pathAddr.string().c_str()); - dir.setFilter(QDir::Dirs | QDir::NoSymLinks | QDir::NoDotAndDotDot); - QFileInfoList list = dir.entryInfoList(); - - for (int i = 0; i < list.size(); ++i) { - QFileInfo fileInfo = list.at(i); - ui->theme->addItem(fileInfo.fileName(), QVariant(fileInfo.fileName())); - } - - /* Language selector */ - QDir translations(":translations"); - ui->lang->addItem(QString("(") + tr("default") + QString(")"), QVariant("")); - for (const QString& langStr : translations.entryList()) { - QLocale locale(langStr); - - /** check if the locale name consists of 2 parts (language_country) */ - if(langStr.contains("_")) - { - /** display language strings as "native language - native country (locale name)", e.g. "Deutsch - Deutschland (de)" */ - ui->lang->addItem(locale.nativeLanguageName() + QString(" - ") + locale.nativeCountryName() + QString(" (") + langStr + QString(")"), QVariant(langStr)); - } - else - { - /** display language strings as "native language (locale name)", e.g. "Deutsch (de)" */ - ui->lang->addItem(locale.nativeLanguageName() + QString(" (") + langStr + QString(")"), QVariant(langStr)); - } - } - ui->thirdPartyTxUrls->setPlaceholderText("https://example.com/tx/%s"); - - ui->unit->setModel(new BitcoinUnits(this)); - - /* Widget-to-option mapper */ - mapper = new QDataWidgetMapper(this); - mapper->setSubmitPolicy(QDataWidgetMapper::ManualSubmit); - mapper->setOrientation(Qt::Vertical); - - /* setup/change UI elements when proxy IP is invalid/valid */ - connect(this, &OptionsDialog::proxyIpChecks, this, &OptionsDialog::doProxyIpChecks); -} - -OptionsDialog::~OptionsDialog() -{ - GUIUtil::saveWindowGeometry("nOptionsDialogWindow", this); - delete ui; -} - -void OptionsDialog::setModel(OptionsModel* model) -{ - this->model = model; - - if (model) { - /* check if client restart is needed and show persistent message */ - if (model->isRestartRequired()) - showRestartWarning(true); - - QString strLabel = model->getOverriddenByCommandLine(); - if (strLabel.isEmpty()) - strLabel = tr("none"); - ui->overriddenByCommandLineLabel->setText(strLabel); - - mapper->setModel(model); - setMapper(); - mapper->toFirst(); - } - - /* warn when one of the following settings changes by user action (placed here so init via mapper doesn't trigger them) */ - - /* Main */ - connect(ui->databaseCache, static_cast(&QSpinBox::valueChanged), this, &OptionsDialog::showRestartWarning); - connect(ui->threadsScriptVerif, static_cast(&QSpinBox::valueChanged), this, &OptionsDialog::showRestartWarning); - /* Wallet */ - connect(ui->spendZeroConfChange, &QCheckBox::clicked, this, &OptionsDialog::showRestartWarning); - /* Network */ - connect(ui->allowIncoming, &QCheckBox::clicked, this, &OptionsDialog::showRestartWarning); - connect(ui->connectSocks, &QCheckBox::clicked, this, &OptionsDialog::showRestartWarning); - /* Display */ - connect(ui->digits, static_cast(&QValueComboBox::valueChanged), [this]{ showRestartWarning(); }); - connect(ui->theme, static_cast(&QValueComboBox::valueChanged), [this]{ showRestartWarning(); }); - connect(ui->lang, static_cast(&QValueComboBox::valueChanged), [this]{ showRestartWarning(); }); - connect(ui->thirdPartyTxUrls, &QLineEdit::textChanged, [this]{ showRestartWarning(); }); - connect(ui->showMasternodesTab, &QCheckBox::clicked, this, &OptionsDialog::showRestartWarning); -} - -void OptionsDialog::setMapper() -{ - /* Main */ - mapper->addMapping(ui->bitcoinAtStartup, OptionsModel::StartAtStartup); - mapper->addMapping(ui->threadsScriptVerif, OptionsModel::ThreadsScriptVerif); - mapper->addMapping(ui->databaseCache, OptionsModel::DatabaseCache); - // Zeromint Enabled - mapper->addMapping(ui->checkBoxZeromintEnable, OptionsModel::ZeromintEnable); - // Zeromint Addresses - mapper->addMapping(ui->checkBoxZeromintAddresses, OptionsModel::ZeromintAddresses); - // Zerocoin mint percentage - mapper->addMapping(ui->zeromintPercentage, OptionsModel::ZeromintPercentage); - // Zerocoin preferred denomination - mapper->addMapping(ui->preferredDenom, OptionsModel::ZeromintPrefDenom); - - /* Wallet */ - mapper->addMapping(ui->spendZeroConfChange, OptionsModel::SpendZeroConfChange); - mapper->addMapping(ui->coinControlFeatures, OptionsModel::CoinControlFeatures); - - /* Network */ - mapper->addMapping(ui->mapPortUpnp, OptionsModel::MapPortUPnP); - mapper->addMapping(ui->allowIncoming, OptionsModel::Listen); - - mapper->addMapping(ui->connectSocks, OptionsModel::ProxyUse); - mapper->addMapping(ui->proxyIp, OptionsModel::ProxyIP); - mapper->addMapping(ui->proxyPort, OptionsModel::ProxyPort); - - /* Window */ -#ifndef Q_OS_MAC - mapper->addMapping(ui->minimizeToTray, OptionsModel::MinimizeToTray); - mapper->addMapping(ui->minimizeOnClose, OptionsModel::MinimizeOnClose); -#endif - - /* Display */ - mapper->addMapping(ui->digits, OptionsModel::Digits); - mapper->addMapping(ui->theme, OptionsModel::Theme); - mapper->addMapping(ui->theme, OptionsModel::Theme); - mapper->addMapping(ui->lang, OptionsModel::Language); - mapper->addMapping(ui->unit, OptionsModel::DisplayUnit); - mapper->addMapping(ui->thirdPartyTxUrls, OptionsModel::ThirdPartyTxUrls); - mapper->addMapping(ui->checkBoxHideZeroBalances, OptionsModel::HideZeroBalances); - mapper->addMapping(ui->checkBoxHideOrphans, OptionsModel::HideOrphans); - - /* Masternode Tab */ - mapper->addMapping(ui->showMasternodesTab, OptionsModel::ShowMasternodesTab); -} - -void OptionsDialog::enableOkButton() -{ - /* prevent enabling of the OK button when data modified, if there is an invalid proxy address present */ - if (fProxyIpValid) - setOkButtonState(true); -} - -void OptionsDialog::disableOkButton() -{ - setOkButtonState(false); -} - -void OptionsDialog::setOkButtonState(bool fState) -{ - ui->okButton->setEnabled(fState); -} - -void OptionsDialog::on_resetButton_clicked() -{ - if (model) { - // confirmation dialog - QMessageBox::StandardButton btnRetVal = QMessageBox::question(this, tr("Confirm options reset"), - tr("Client restart required to activate changes.") + "

" + tr("Client will be shutdown, do you want to proceed?"), - QMessageBox::Yes | QMessageBox::Cancel, QMessageBox::Cancel); - - if (btnRetVal == QMessageBox::Cancel) - return; - - /* reset all options and close GUI */ - model->Reset(); - QApplication::quit(); - } -} - -void OptionsDialog::on_okButton_clicked() -{ - mapper->submit(); - accept(); -} - -void OptionsDialog::on_cancelButton_clicked() -{ - reject(); -} - -void OptionsDialog::showRestartWarning(bool fPersistent) -{ - ui->statusLabel->setStyleSheet("QLabel { color: red; }"); - - if (fPersistent) { - ui->statusLabel->setText(tr("Client restart required to activate changes.")); - } else { - ui->statusLabel->setText(tr("This change would require a client restart.")); - // clear non-persistent status label after 10 seconds - // Todo: should perhaps be a class attribute, if we extend the use of statusLabel - QTimer::singleShot(10000, this, &OptionsDialog::clearStatusLabel); - } -} - -void OptionsDialog::clearStatusLabel() -{ - ui->statusLabel->clear(); -} - -void OptionsDialog::updateHideOrphans(bool fHide) -{ - if(ui->checkBoxHideOrphans->isChecked() != fHide) - ui->checkBoxHideOrphans->setChecked(fHide); -} - -void OptionsDialog::doProxyIpChecks(QValidatedLineEdit* pUiProxyIp, QLineEdit* pUiProxyPort) -{ - const std::string strAddrProxy = pUiProxyIp->text().toStdString(); - const int nProxyPort = pUiProxyPort->text().toInt(); - CService addrProxy(LookupNumeric(strAddrProxy.c_str(), nProxyPort)); - - // Check for a valid IPv4 / IPv6 address - if (!(fProxyIpValid = addrProxy.IsValid())) { - disableOkButton(); - pUiProxyIp->setValid(false); - ui->statusLabel->setStyleSheet("QLabel { color: red; }"); - ui->statusLabel->setText(tr("The supplied proxy address is invalid.")); - return; - } - // Check proxy port - if (!pUiProxyPort->hasAcceptableInput()) { - disableOkButton(); - ui->statusLabel->setStyleSheet("QLabel { color: red; }"); - ui->statusLabel->setText(tr("The supplied proxy port is invalid.")); - return; - } - - proxyType checkProxy = proxyType(addrProxy); - if (!checkProxy.IsValid()) { - disableOkButton(); - ui->statusLabel->setStyleSheet("QLabel { color: red; }"); - ui->statusLabel->setText(tr("The supplied proxy settings are invalid.")); - return; - } - - enableOkButton(); - ui->statusLabel->clear(); -} - -bool OptionsDialog::eventFilter(QObject* object, QEvent* event) -{ - if (event->type() == QEvent::FocusOut) { - if (object == ui->proxyIp || object == ui->proxyPort) { - Q_EMIT proxyIpChecks(ui->proxyIp, ui->proxyPort); - } - } - return QDialog::eventFilter(object, event); -} - -void OptionsDialog::setCurrentIndex(int index) -{ - ui->tabWidget->setCurrentIndex(index); -} diff --git a/src/qt/optionsdialog.h b/src/qt/optionsdialog.h deleted file mode 100644 index 704ebe49f45cf6..00000000000000 --- a/src/qt/optionsdialog.h +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) 2011-2013 The Bitcoin developers -// Copyright (c) 2017-2019 The PIVX developers -// Distributed under the MIT/X11 software license, see the accompanying -// file COPYING or http://www.opensource.org/licenses/mit-license.php. - -#ifndef BITCOIN_QT_OPTIONSDIALOG_H -#define BITCOIN_QT_OPTIONSDIALOG_H - -#include - -class OptionsModel; -class QValidatedLineEdit; -class QLineEdit; - -QT_BEGIN_NAMESPACE -class QDataWidgetMapper; -QT_END_NAMESPACE - -namespace Ui -{ -class OptionsDialog; -} - -/** Preferences dialog. */ -class OptionsDialog : public QDialog -{ - Q_OBJECT - -public: - explicit OptionsDialog(QWidget* parent, bool enableWallet); - ~OptionsDialog(); - - void setModel(OptionsModel* model); - void setMapper(); - void setCurrentIndex(int index); - -protected: - bool eventFilter(QObject* object, QEvent* event); - -private Q_SLOTS: - /* enable OK button */ - void enableOkButton(); - /* disable OK button */ - void disableOkButton(); - /* set OK button state (enabled / disabled) */ - void setOkButtonState(bool fState); - void on_resetButton_clicked(); - void on_okButton_clicked(); - void on_cancelButton_clicked(); - - void updateHideOrphans(bool fHide); - - void showRestartWarning(bool fPersistent = false); - void clearStatusLabel(); - void doProxyIpChecks(QValidatedLineEdit* pUiProxyIp, QLineEdit* pUiProxyPort); - -Q_SIGNALS: - void proxyIpChecks(QValidatedLineEdit* pUiProxyIp, QLineEdit* pUiProxyPort); - -private: - Ui::OptionsDialog* ui; - OptionsModel* model; - QDataWidgetMapper* mapper; - bool fProxyIpValid; -}; - -#endif // BITCOIN_QT_OPTIONSDIALOG_H