mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-04 12:26:58 +03:00
NOISSUE tabs -> spaces
This commit is contained in:
parent
03280cc62e
commit
bbb3b3e6f6
577 changed files with 51938 additions and 51938 deletions
|
|
@ -17,37 +17,37 @@
|
|||
#include "settings/SettingsObject.h"
|
||||
|
||||
Setting::Setting(QStringList synonyms, QVariant defVal)
|
||||
: QObject(), m_synonyms(synonyms), m_defVal(defVal)
|
||||
: QObject(), m_synonyms(synonyms), m_defVal(defVal)
|
||||
{
|
||||
}
|
||||
|
||||
QVariant Setting::get() const
|
||||
{
|
||||
SettingsObject *sbase = m_storage;
|
||||
if (!sbase)
|
||||
{
|
||||
return defValue();
|
||||
}
|
||||
else
|
||||
{
|
||||
QVariant test = sbase->retrieveValue(*this);
|
||||
if (!test.isValid())
|
||||
return defValue();
|
||||
return test;
|
||||
}
|
||||
SettingsObject *sbase = m_storage;
|
||||
if (!sbase)
|
||||
{
|
||||
return defValue();
|
||||
}
|
||||
else
|
||||
{
|
||||
QVariant test = sbase->retrieveValue(*this);
|
||||
if (!test.isValid())
|
||||
return defValue();
|
||||
return test;
|
||||
}
|
||||
}
|
||||
|
||||
QVariant Setting::defValue() const
|
||||
{
|
||||
return m_defVal;
|
||||
return m_defVal;
|
||||
}
|
||||
|
||||
void Setting::set(QVariant value)
|
||||
{
|
||||
emit SettingChanged(*this, value);
|
||||
emit SettingChanged(*this, value);
|
||||
}
|
||||
|
||||
void Setting::reset()
|
||||
{
|
||||
emit settingReset(*this);
|
||||
emit settingReset(*this);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue