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
_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)
......@@ -48,7 +48,7 @@ const SettingsFact& SettingsFact::operator=(const SettingsFact& other)
return *this;
}
void SettingsFact::_valueChanged(QVariant value)
void SettingsFact::_rawValueChanged(QVariant value)
{
QSettings settings;
......
......@@ -29,7 +29,7 @@ public:
const SettingsFact& operator=(const SettingsFact& other);
private slots:
void _valueChanged(QVariant value);
void _rawValueChanged(QVariant value);
private:
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