PropertyMap Class Reference

MathVizAnimator: PropertyMap Class Reference
MathVizAnimator  0.0.1
PropertyMap Class Reference

Map which stores key (QString) value (QVariant) pairs. More...

#include <abstractitem.h>

Inheritance diagram for PropertyMap:
[legend]
Collaboration diagram for PropertyMap:
[legend]

Public Member Functions

QString stringValue (const QString &property) const
 Returns the value to the given property as QString. More...
 

Detailed Description

Map which stores key (QString) value (QVariant) pairs.

Derived from QVariantMap which is typedef for QMap<QString, QVariant>. Stores the properties of an item with its values. The function stringValue converts the QVariant value of the given property to a QString.

Member Function Documentation

◆ stringValue()

QString PropertyMap::stringValue ( const QString &  property) const
inline

Returns the value to the given property as QString.

An empty QString will be returned when the value can't be converted or the given property does not exist in the Map.

Parameters
propertyThe property which value should be returned.

The documentation for this class was generated from the following file:
  • /home/docs/checkouts/readthedocs.org/user_builds/mathvizanimator/checkouts/latest/libs/mva_gui/include/items/abstractitem.h