PropertyLib::ChildProperty Class Reference
Child property. More...
#include <childproperty.h>
Inheritance diagram for PropertyLib::ChildProperty:


Public Types | |
enum | ChildPropertyType { Size_Height, Size_Width, Point_X, Point_Y, Rect_X, Rect_Y, Rect_Width, Rect_Height, SizePolicy_HorData, SizePolicy_VerData, SizePolicy_HorStretch, SizePolicy_VerStretch } |
Public Member Functions | |
ChildProperty () | |
Constructs empty property. | |
ChildProperty (MultiProperty *parent, int type, ChildPropertyType childType, const QString &name, const QString &description, const QVariant &value=QVariant(), bool save=true, bool readOnly=false) | |
Constructs property. | |
ChildProperty (MultiProperty *parent, const QString &name, ChildPropertyType childType, const QMap< QString, QVariant > &v_valueList, const QString &description, const QVariant &value=QVariant(), bool save=true, bool readOnly=false) | |
Constructs property with ValueFromList type. | |
virtual QVariant | value () const |
virtual void | setValue (const QVariant &value, bool rememberOldValue=true) |
Sets the value of the property. | |
Private Attributes | |
MultiProperty * | m_parent |
ChildPropertyType | m_childType |
Detailed Description
Child property.Child property is a detailed property for complex parent properties. For example, to edit a property of Point type one can request two child properties for "x" and "y" components of a point.
Child properties instances usually belong to MultiProperty class which is used to fetch and display them in the property editor. Child properties are created by a PropertyMachineFactory. Factory in such case does not only creates a machine for a property, but also fills corrresponding multiproperty with a list of child properties.
Definition at line 43 of file childproperty.h.
Member Enumeration Documentation
|
Definition at line 45 of file childproperty.h. |
Constructor & Destructor Documentation
|
Constructs empty property.
Definition at line 61 of file childproperty.h. |
|
Constructs property.
Definition at line 31 of file childproperty.cpp. |
|
Constructs property with ValueFromList type.
Definition at line 37 of file childproperty.cpp. |
Member Function Documentation
|
Sets the value of the property.
Reimplemented from PropertyLib::Property. Definition at line 44 of file childproperty.cpp. References m_childType, m_parent, PropertyLib::MultiProperty::setValue(), PropertyLib::MultiProperty::type(), PropertyLib::MultiProperty::valid(), and PropertyLib::MultiProperty::value(). |
|
Reimplemented from PropertyLib::Property. Definition at line 106 of file childproperty.cpp. References m_childType, m_parent, PropertyLib::MultiProperty::type(), PropertyLib::MultiProperty::valid(), and PropertyLib::MultiProperty::value(). |
Member Data Documentation
|
Definition at line 78 of file childproperty.h. Referenced by setValue(), and value(). |
|
Definition at line 77 of file childproperty.h. Referenced by setValue(), and value(). |
The documentation for this class was generated from the following files:
- lib/widgets/propeditor/childproperty.h
- lib/widgets/propeditor/childproperty.cpp