Class to contain all the properties relevant to comms::field::String fields.
|
| String () |
| Default constructor.
|
|
| String (const QVariant &props) |
| Construct from QVariant containing QVariantMap.
|
|
| String (const QVariantMap &props) |
| Construct from QVariantMap.
|
|
| String (const String &) |
| Copy constructor.
|
|
| String (String &&) |
| Move constructor.
|
|
| ~String () noexcept |
| Destructor.
|
|
QVariantMap | asMap () const |
| Retrieve all properties as map.
|
|
void | getFrom (const QVariantMap &props) |
| Read the properties values from the provided map.
|
|
String & | hidden (bool value=true) |
| Set whether the field is hidden.
|
|
String & | 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.
|
|
String & | name (const char *value) |
| Set name value.
|
|
String & | name (const QString &value) |
| Set name value.
|
|
String & | operator= (const String &) |
| Copy assignment.
|
|
String & | operator= (String &&) |
| Move assignement.
|
|
String & | readOnly (bool value=true) |
| Set whether the field cannot be modified.
|
|
String & | 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.
|
|