Class to contain all the properties relevant to comms::field::IntValue fields.
|
| IntValue () |
| Default constructor.
|
|
| IntValue (const IntValue &) |
| Copy constructor.
|
|
| IntValue (const QVariant &props) |
| Construct from QVariant that contains QVariantMap.
|
|
| IntValue (const QVariantMap &props) |
| Construct from QVariantMap.
|
|
| IntValue (IntValue &&) |
| Move constructor.
|
|
| ~IntValue () noexcept |
| Destructor.
|
|
IntValue & | addSpecial (const QString &specialName, long long value) |
| Add speical value.
|
|
QVariantMap | asMap () const |
| Retrieve all properties as map.
|
|
long long | displayOffset () const |
| Get numeric offset of the displayed field.
|
|
IntValue & | displayOffset (long long value) |
| Set numeric offset for displayed field.
|
|
bool | hasScaledDecimals () const |
| Check whether property of having scaled decimals being set.
|
|
IntValue & | hidden (bool value=true) |
| Set whether the field is hidden.
|
|
IntValue & | 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.
|
|
IntValue & | name (const char *value) |
| Set name value.
|
|
IntValue & | name (const QString &value) |
| Set name value.
|
|
IntValue & | operator= (const IntValue &) |
| Copy assignement.
|
|
IntValue & | operator= (IntValue &&) |
| Move assignment.
|
|
IntValue & | readOnly (bool value=true) |
| Set whether the field cannot be modified.
|
|
int | scaledDecimals () const |
| Get number of digits after decimal point when displaying scaled value.
|
|
IntValue & | scaledDecimals (int value) |
| Set number of digits after decimal point when displaying scaled value.
|
|
IntValue & | 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.
|
|