Class to contain all the properties relevant to comms::field::Optional fields.
|
| Optional () |
| Default constructor.
|
|
| Optional (const Optional &) |
| Copy constructor.
|
|
| Optional (const QVariant &props) |
| Construct from QVariant containing QVariantMap.
|
|
| Optional (const QVariantMap &props) |
| Construct from QVariantMap.
|
|
| Optional (Optional &&) |
| Move constructor.
|
|
| ~Optional () noexcept |
| Destructor.
|
|
QVariantMap | asMap () const |
| Retrieve all properties as map.
|
|
const QVariantMap & | field () const |
| Get access to contained field's properties.
|
|
Optional & | field (const QVariantMap &fieldProps) |
| Set contained field's properties.
|
|
Optional & | field (QVariantMap &&fieldProps) |
| Set contained field's properties.
|
|
Optional & | hidden (bool value=true) |
| Set whether the field is hidden.
|
|
Optional & | 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.
|
|
bool | isUncheckable () const |
| Check field is uncheckable.
|
|
const QString & | name () const |
| Get name of the field.
|
|
Optional & | name (const char *value) |
| Set name value.
|
|
Optional & | name (const QString &value) |
| Set name value.
|
|
Optional & | operator= (const Optional &) |
| Copy assignment.
|
|
Optional & | operator= (Optional &&) |
| Move assignment.
|
|
Optional & | readOnly (bool value=true) |
| Set whether the field cannot be modified.
|
|
Optional & | 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.
|
|
Optional & | uncheckable (bool value=true) |
| (Un)Mark the field uncheckable.
|
|