aboutsummaryrefslogtreecommitdiff
path: root/src/qt/optionsdialog.h
diff options
context:
space:
mode:
authorPhilip Kaufmann <phil.kaufmann@t-online.de>2012-07-09 11:14:38 +0200
committerPhilip Kaufmann <phil.kaufmann@t-online.de>2012-07-22 01:12:11 +0200
commit1376a542b45ec4c733c772fd3e4844d70bf4da40 (patch)
tree1a79a87ecdb39c83f7c90a8df9c5f88305506545 /src/qt/optionsdialog.h
parentfa914f1ddaeed79f1e2d5404b4789e3a1c1aebb2 (diff)
optionsdialog cleanup
- remove duplicate includes, that are already present in ui_optionsdialog.h - change QIntValidator to not allow 0 as port-number - re-order some function calls to match the Ui element order, for better readbility and to prepare for the addition of further IPv6 and Tor proxy options - restat warning for the language selection is only shown, when the language was changed (not on simply activating the Ui element) - split check for object == ui->proxyIp into seperate if-clause - micro-optimize the code in the above mentioned if-clause - unify used format for comments in the code - introduce handleProxyIpValid() function, which handles UI elements and the save button states for valid/invalid proxy IPs
Diffstat (limited to 'src/qt/optionsdialog.h')
-rw-r--r--src/qt/optionsdialog.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qt/optionsdialog.h b/src/qt/optionsdialog.h
index 7e91c96475..9e91000b63 100644
--- a/src/qt/optionsdialog.h
+++ b/src/qt/optionsdialog.h
@@ -8,6 +8,7 @@ class OptionsDialog;
}
class OptionsModel;
class MonitoredDataMapper;
+class QValidatedLineEdit;
/** Preferences dialog. */
class OptionsDialog : public QDialog
@@ -38,9 +39,10 @@ private slots:
void showRestartWarning_Proxy();
void showRestartWarning_Lang();
void updateDisplayUnit();
+ void handleProxyIpValid(QValidatedLineEdit *object, bool fState);
signals:
- void proxyIpValid(bool fValid);
+ void proxyIpValid(QValidatedLineEdit *object, bool fValid);
private:
Ui::OptionsDialog *ui;