template<typename TDerived>
class cc_tools_qt::property::field::CommonBase< TDerived >
Intermediate helper class to define properties describing one.
- Template Parameters
-
TDerived | Actual derived class |
|
| CommonBase ()=default |
| Default constructor.
|
|
| CommonBase (CommonBase &&)=default |
| Move constructor.
|
|
| CommonBase (const CommonBase &)=default |
| Copy constructor.
|
|
| CommonBase (const QVariant &props) |
| Construct from QVariant that contains QVariantMap.
|
|
| CommonBase (const QVariantMap &props) |
| Construct from QVariantMap.
|
|
| ~CommonBase () noexcept=default |
| Destructor.
|
|
void | getFrom (const QVariantMap &props) |
| Read the properties values from the provided map.
|
|
TDerived & | hidden (bool value=true) |
| Set whether the field is hidden.
|
|
TDerived & | 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.
|
|
TDerived & | name (const char *value) |
| Set name value.
|
|
TDerived & | name (const QString &value) |
| Set name value.
|
|
CommonBase & | operator= (CommonBase &&)=default |
| Move assignment.
|
|
CommonBase & | operator= (const CommonBase &)=default |
| Copy assignment.
|
|
TDerived & | readOnly (bool value=true) |
| Set whether the field cannot be modified.
|
|
TDerived & | 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.
|
|