PropertyModel Class Reference

MathVizAnimator: PropertyModel Class Reference
MathVizAnimator  0.0.1
PropertyModel Class Reference
Inheritance diagram for PropertyModel:
[legend]
Collaboration diagram for PropertyModel:
[legend]

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
propertiesMap 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
propertyThe 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