diff options
| author | Philip Kaufmann <[email protected]> | 2012-07-09 13:40:22 +0200 |
|---|---|---|
| committer | Philip Kaufmann <[email protected]> | 2012-07-12 15:31:59 +0200 |
| commit | 144bfd9c538528c95c9f7d4f0074690cfacec326 (patch) | |
| tree | 33f228a9d285b809f13b97b3659ee1c36a71486d /src/qt/optionsmodel.h | |
| parent | Merge pull request #1584 from Diapolo/trans_proc (diff) | |
| download | discoin-144bfd9c538528c95c9f7d4f0074690cfacec326.tar.xz discoin-144bfd9c538528c95c9f7d4f0074690cfacec326.zip | |
optionsmodel cleanup
- cleanup optionsmodel before adding new proxy options
- place SOCKS version stuff below proxy port (IP, Port, SOCKS version)
- simplyfy some parts of the code (e.g. don't check IP and port, as this
is done in optionsdialog anyway, remove unneeded {} in switch/case)
- small cosmetic changes in the header for better readability
Diffstat (limited to 'src/qt/optionsmodel.h')
| -rw-r--r-- | src/qt/optionsmodel.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/qt/optionsmodel.h b/src/qt/optionsmodel.h index b196f0bf6..34724ad03 100644 --- a/src/qt/optionsmodel.h +++ b/src/qt/optionsmodel.h @@ -12,23 +12,24 @@ class OptionsModel : public QAbstractListModel { Q_OBJECT + public: explicit OptionsModel(QObject *parent = 0); enum OptionID { - StartAtStartup, // bool - MinimizeToTray, // bool - MapPortUPnP, // bool - MinimizeOnClose, // bool - ProxyUse, // bool + StartAtStartup, // bool + MinimizeToTray, // bool + MapPortUPnP, // bool + MinimizeOnClose, // bool + ProxyUse, // bool + ProxyIP, // QString + ProxyPort, // int ProxySocksVersion, // int - ProxyIP, // QString - ProxyPort, // int - Fee, // qint64 - DisplayUnit, // BitcoinUnits::Unit - DisplayAddresses, // bool - DetachDatabases, // bool - Language, // QString + Fee, // qint64 + DisplayUnit, // BitcoinUnits::Unit + DisplayAddresses, // bool + DetachDatabases, // bool + Language, // QString OptionIDRowCount, }; @@ -48,17 +49,16 @@ public: int getDisplayUnit(); bool getDisplayAddresses(); QString getLanguage() { return language; } + private: int nDisplayUnit; bool bDisplayAddresses; bool fMinimizeToTray; bool fMinimizeOnClose; QString language; + signals: void displayUnitChanged(int unit); - -public slots: - }; #endif // OPTIONSMODEL_H |