PropertyModel Class Reference
|
MathVizAnimator
0.0.1
|
PropertyModel Class Reference
Inheritance diagram for PropertyModel:
Collaboration diagram for PropertyModel:
Public Member Functions | |
| void | appendProperty (const ItemProperty &property) |
| Appends a property to the model. More... | |
| void | appendProperties (const PropertyMap &properties) |
| Appends all properties from the given property map to the model. More... | |
| Qt::ItemFlags | flags (const QModelIndex &index) const override |
Member Function Documentation
◆ appendProperties()
| void PropertyModel::appendProperties | ( | const PropertyMap & | properties | ) |
Appends all properties from the given property map to the model.
The given property map stores the values of the properties as QVariant. Internally the value will be converted to a QString using QVariant::toString(). If value is of a type which can't be converted to a QString, an empty QString will be added to the model.
- Parameters
-
properties Map with property-value pairs which will be added to the model
◆ appendProperty()
| void PropertyModel::appendProperty | ( | const ItemProperty & | property | ) |
Appends a property to the model.
The given parameter is of type ItemProperty, where the value is given as QVariant. Internally the value will be converted to a QString using QVariant::toString(). If value is of a type which can't be converted to a QString, an empty QString will be added to the model.
- Parameters
-
property The item property object containing name and value.
The documentation for this class was generated from the following files:
- /home/docs/checkouts/readthedocs.org/user_builds/mathvizanimator/checkouts/latest/libs/mva_workflow/include/workflow/itemhandler.h
- /home/docs/checkouts/readthedocs.org/user_builds/mathvizanimator/checkouts/latest/libs/mva_workflow/src/itemhandler.cpp
Generated by