Browse Source

Merge pull request #1900 from Diapolo/optionsmodel_getters

move most explicit getters in optionsmodel to header
0.8
Wladimir J. van der Laan 12 years ago
parent
commit
fae3989ffc
  1. 20
      src/qt/optionsmodel.cpp
  2. 8
      src/qt/optionsmodel.h

20
src/qt/optionsmodel.cpp

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

8
src/qt/optionsmodel.h

@ -44,10 +44,10 @@ public: @@ -44,10 +44,10 @@ public:
/* 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:

Loading…
Cancel
Save