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
c2d5f6a2
Commit
c2d5f6a2
authored
Apr 16, 2015
by
Don Gagne
Browse files
Add clearDefaultValue to reset in case of iffy default value
parent
309ee020
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/FactSystem/FactMetaData.cc
View file @
c2d5f6a2
...
...
@@ -133,3 +133,9 @@ QVariant FactMetaData::_maxForType(void)
// Make windows compiler happy, even switch is full cased
return
QVariant
();
}
void
FactMetaData
::
clearDefaultValue
(
void
)
{
_defaultValue
=
0
;
_defaultValueAvailable
=
false
;
}
src/FactSystem/FactMetaData.h
View file @
c2d5f6a2
...
...
@@ -73,10 +73,9 @@ public:
void
setUnits
(
const
QString
&
units
)
{
_units
=
units
;
}
void
setMin
(
const
QVariant
&
max
);
void
setMax
(
const
QVariant
&
max
);
/// Initialize the meta data given only the type.
void
initFromTypeOnly
(
ValueType_t
initType
);
/// Used to clear a default value which it is found to possibly be invalid
void
clearDefaultValue
(
void
);
private:
QVariant
_minForType
(
void
);
...
...
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