Commit c2d5f6a2 authored by Don Gagne's avatar Don Gagne

Add clearDefaultValue to reset in case of iffy default value

parent 309ee020
......@@ -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;
}
......@@ -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);
......
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