Commit d49cb252 authored by Don Gagne's avatar Don Gagne

Must use rawValue for conversions to work correctly

parent 8fa4835b
...@@ -30,7 +30,7 @@ SettingsFact::SettingsFact(QString settingGroup, QString settingName, FactMetaDa ...@@ -30,7 +30,7 @@ SettingsFact::SettingsFact(QString settingGroup, QString settingName, FactMetaDa
_rawValue = settings.value(_name, defaultValue); _rawValue = settings.value(_name, defaultValue);
connect(this, &Fact::valueChanged, this, &SettingsFact::_valueChanged); connect(this, &Fact::rawValueChanged, this, &SettingsFact::_rawValueChanged);
} }
SettingsFact::SettingsFact(const SettingsFact& other, QObject* parent) SettingsFact::SettingsFact(const SettingsFact& other, QObject* parent)
...@@ -48,7 +48,7 @@ const SettingsFact& SettingsFact::operator=(const SettingsFact& other) ...@@ -48,7 +48,7 @@ const SettingsFact& SettingsFact::operator=(const SettingsFact& other)
return *this; return *this;
} }
void SettingsFact::_valueChanged(QVariant value) void SettingsFact::_rawValueChanged(QVariant value)
{ {
QSettings settings; QSettings settings;
......
...@@ -29,7 +29,7 @@ public: ...@@ -29,7 +29,7 @@ public:
const SettingsFact& operator=(const SettingsFact& other); const SettingsFact& operator=(const SettingsFact& other);
private slots: private slots:
void _valueChanged(QVariant value); void _rawValueChanged(QVariant value);
private: private:
QString _settingGroup; QString _settingGroup;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment