Class to contain all the properties relevant to comms::field::Variant fields.
|
| Variant () |
| Default constructor.
|
|
| Variant (const QVariant &props) |
| Construct from QVariant containing QVariantMap.
|
|
| Variant (const QVariantMap &props) |
| Construct from QVariantMap.
|
|
| Variant (const Variant &) |
| Copy constructor.
|
|
| Variant (Variant &&) |
| Move constructor.
|
|
| ~Variant () noexcept |
| Destructor.
|
|
Variant & | add (const QVariantMap &memberProps) |
| Add properties of the next member.
|
|
Variant & | add (QVariantMap &&memberProps) |
| Add properties of the next member.
|
|
QVariantMap | asMap () const |
| Retrieve all properties as map.
|
|
Variant & | hidden (bool value=true) |
| Set whether the field is hidden.
|
|
Variant & | 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 | isIndexHidden () const |
| Check the member index should be hidden when displaying field.
|
|
bool | isReadOnly () const |
| Check whether the field cannot be modified.
|
|
bool | isSerialisedHidden () const |
| Check the serialisation part is hidden.
|
|
const MembersList & | members () const |
| Get access to the contained fields' properties.
|
|
const QString & | name () const |
| Get name of the field.
|
|
Variant & | name (const char *value) |
| Set name value.
|
|
Variant & | name (const QString &value) |
| Set name value.
|
|
Variant & | operator= (const Variant &) |
| Copy assignment.
|
|
Variant & | operator= (Variant &&) |
| Move assignment.
|
|
Variant & | readOnly (bool value=true) |
| Set whether the field cannot be modified.
|
|
Variant & | serialisedHidden (bool value=true) |
| Set whether the serialised part is hidden.
|
|
Variant & | setIndexHidden (bool hiddenVal=true) |
| Set the member index should be hidden when displaying field.
|
|
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.
|
|