mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +01:00
move most explicit getters in optionsmodel to header
- is more consistent and saves quite some lines of code
This commit is contained in:
parent
0547b02af7
commit
7bc65ff108
@ -262,23 +262,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;
|
||||
}
|
||||
|
@ -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…
Reference in New Issue
Block a user