Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
d49cb252
Commit
d49cb252
authored
Sep 18, 2016
by
Don Gagne
Browse files
Must use rawValue for conversions to work correctly
parent
8fa4835b
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/FactSystem/SettingsFact.cc
View file @
d49cb252
...
...
@@ -30,7 +30,7 @@ SettingsFact::SettingsFact(QString settingGroup, QString settingName, FactMetaDa
_rawValue
=
settings
.
value
(
_name
,
defaultValue
);
connect
(
this
,
&
Fact
::
v
alueChanged
,
this
,
&
SettingsFact
::
_
v
alueChanged
);
connect
(
this
,
&
Fact
::
rawV
alueChanged
,
this
,
&
SettingsFact
::
_
rawV
alueChanged
);
}
SettingsFact
::
SettingsFact
(
const
SettingsFact
&
other
,
QObject
*
parent
)
...
...
@@ -48,7 +48,7 @@ const SettingsFact& SettingsFact::operator=(const SettingsFact& other)
return
*
this
;
}
void
SettingsFact
::
_
v
alueChanged
(
QVariant
value
)
void
SettingsFact
::
_
rawV
alueChanged
(
QVariant
value
)
{
QSettings
settings
;
...
...
src/FactSystem/SettingsFact.h
View file @
d49cb252
...
...
@@ -29,7 +29,7 @@ public:
const
SettingsFact
&
operator
=
(
const
SettingsFact
&
other
);
private
slots
:
void
_
v
alueChanged
(
QVariant
value
);
void
_
rawV
alueChanged
(
QVariant
value
);
private:
QString
_settingGroup
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment