Mercurial > hg > bitcoin
changeset 3582:9fa5d7775896 draft
move most explicit getters in optionsmodel to header
- is more consistent and saves quite some lines of code
author | Philip Kaufmann <phil.kaufmann@t-online.de> |
---|---|
date | Tue, 02 Oct 2012 13:37:19 +0200 |
parents | 683f60758d5f |
children | 216137e8238b |
files | src/qt/optionsmodel.cpp src/qt/optionsmodel.h |
diffstat | 2 files changed, 4 insertions(+), 24 deletions(-) [+] |
line wrap: on
line diff
--- a/src/qt/optionsmodel.cpp +++ b/src/qt/optionsmodel.cpp @@ -262,23 +262,3 @@ { return nTransactionFee; } - -bool OptionsModel::getMinimizeToTray() -{ - return fMinimizeToTray; -} - -bool OptionsModel::getMinimizeOnClose() -{ - return fMinimizeOnClose; -} - -int OptionsModel::getDisplayUnit() -{ - return nDisplayUnit; -} - -bool OptionsModel::getDisplayAddresses() -{ - return bDisplayAddresses; -}
--- a/src/qt/optionsmodel.h +++ b/src/qt/optionsmodel.h @@ -44,10 +44,10 @@ /* Explicit getters */ qint64 getTransactionFee(); - bool getMinimizeToTray(); - bool getMinimizeOnClose(); - int getDisplayUnit(); - bool getDisplayAddresses(); + bool getMinimizeToTray() { return fMinimizeToTray; } + bool getMinimizeOnClose() { return fMinimizeOnClose; } + int getDisplayUnit() { return nDisplayUnit; } + bool getDisplayAddresses() { return bDisplayAddresses; } QString getLanguage() { return language; } private: