Class to contain all the properties relevant to comms::field::FloatValue fields.
|
| FloatValue () |
| Default constructor.
|
|
| FloatValue (const FloatValue &) |
| Copy constructor.
|
|
| FloatValue (const QVariant &props) |
| Construct from QVariant containing QVariantMap.
|
|
| FloatValue (const QVariantMap &props) |
| Construct from QVariantMap.
|
|
| FloatValue (FloatValue &&) |
| Move constructor.
|
|
| ~FloatValue () noexcept |
| Destructor.
|
|
FloatValue & | addSpecial (const QString &specialName, double value) |
| Add speical value.
|
|
QVariantMap | asMap () const |
| Retrieve all properties as map.
|
|
int | decimals () const |
| Get number of decimal digits to display.
|
|
FloatValue & | decimals (int value) |
| Set number of decimal digits to display.
|
|
FloatValue & | hidden (bool value=true) |
| Set whether the field is hidden.
|
|
FloatValue & | hiddenWhenReadOnly (bool value=true) |
| Set whether the field must be hidden when cannot be modified.
|
|
bool | isHidden () const |
| Check the field is hidden.
|
|
bool | isHiddenWhenReadOnly () const |
| Check the field is hidden when readOnly.
|
|
bool | isReadOnly () const |
| Check whether the field cannot be modified.
|
|
bool | isSerialisedHidden () const |
| Check the serialisation part is hidden.
|
|
const QString & | name () const |
| Get name of the field.
|
|
FloatValue & | name (const char *value) |
| Set name value.
|
|
FloatValue & | name (const QString &value) |
| Set name value.
|
|
FloatValue & | operator= (const FloatValue &) |
| Copy assignment.
|
|
FloatValue & | operator= (FloatValue &&) |
| Move assignment.
|
|
FloatValue & | readOnly (bool value=true) |
| Set whether the field cannot be modified.
|
|
FloatValue & | serialisedHidden (bool value=true) |
| Set whether the serialised part is hidden.
|
|
void | setName (const char *value) |
| Update the name value.
|
|
void | setName (const QString &value) |
| Update the name value.
|
|
void | setTo (QVariantMap &props) const |
| Copy all the properties value into provided properties map.
|
|
const SpecialsList & | specials () const |
| Get access to all the special values information.
|
|