Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
d49cb252
Commit
d49cb252
authored
Sep 18, 2016
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Must use rawValue for conversions to work correctly
parent
8fa4835b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
SettingsFact.cc
src/FactSystem/SettingsFact.cc
+2
-2
SettingsFact.h
src/FactSystem/SettingsFact.h
+1
-1
No files found.
src/FactSystem/SettingsFact.cc
View file @
d49cb252
...
@@ -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
::
_v
alueChanged
);
connect
(
this
,
&
Fact
::
rawValueChanged
,
this
,
&
SettingsFact
::
_rawV
alueChanged
);
}
}
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
::
_
v
alueChanged
(
QVariant
value
)
void
SettingsFact
::
_
rawV
alueChanged
(
QVariant
value
)
{
{
QSettings
settings
;
QSettings
settings
;
...
...
src/FactSystem/SettingsFact.h
View file @
d49cb252
...
@@ -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
_
v
alueChanged
(
QVariant
value
);
void
_
rawV
alueChanged
(
QVariant
value
);
private:
private:
QString
_settingGroup
;
QString
_settingGroup
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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