move most explicit getters in optionsmodel to header

- is more consistent and saves quite some lines of code
This commit is contained in:
Philip Kaufmann 2012-10-02 13:37:19 +02:00
parent 0547b02af7
commit 7bc65ff108
2 changed files with 4 additions and 24 deletions

View File

@ -262,23 +262,3 @@ qint64 OptionsModel::getTransactionFee()
{ {
return nTransactionFee; return nTransactionFee;
} }
bool OptionsModel::getMinimizeToTray()
{
return fMinimizeToTray;
}
bool OptionsModel::getMinimizeOnClose()
{
return fMinimizeOnClose;
}
int OptionsModel::getDisplayUnit()
{
return nDisplayUnit;
}
bool OptionsModel::getDisplayAddresses()
{
return bDisplayAddresses;
}

View File

@ -44,10 +44,10 @@ public:
/* Explicit getters */ /* Explicit getters */
qint64 getTransactionFee(); qint64 getTransactionFee();
bool getMinimizeToTray(); bool getMinimizeToTray() { return fMinimizeToTray; }
bool getMinimizeOnClose(); bool getMinimizeOnClose() { return fMinimizeOnClose; }
int getDisplayUnit(); int getDisplayUnit() { return nDisplayUnit; }
bool getDisplayAddresses(); bool getDisplayAddresses() { return bDisplayAddresses; }
QString getLanguage() { return language; } QString getLanguage() { return language; }
private: private: