![]() |
itom
|
#include <Property.h>
Public Member Functions | |
| Property (const QString &name=QString(), QObject *propertyObject=0, QObject *parent=0) | |
| virtual QVariant | value (int role=Qt::UserRole) const |
| virtual QString | displayValue (int role=Qt::UserRole) const |
| virtual void | setValue (const QVariant &value) |
| QObject * | propertyObject () |
| bool | isRoot () |
| bool | isReadOnly () |
| int | row () |
| QString | editorHints () |
| virtual void | setEditorHints (const QString &hints) |
| QString | info () |
| virtual void | setInfo (const QString &info) |
| bool | enabled () |
| virtual void | setEnabled (bool enabled) |
| virtual QWidget * | createEditor (QWidget *parent, const QStyleOptionViewItem &option) |
| virtual QVariant | editorData (QWidget *editor) |
| virtual bool | setEditorData (QWidget *editor, const QVariant &data) |
| Property * | findPropertyObject (QObject *propertyObject) |
| Property (const QString &name=QString(), QObject *propertyObject=0, QObject *parent=0) | |
| virtual QVariant | value (int role=Qt::UserRole) const |
| virtual void | setValue (const QVariant &value) |
| QObject * | propertyObject () |
| bool | isRoot () |
| bool | isReadOnly () |
| int | row () |
| QString | editorHints () |
| virtual void | setEditorHints (const QString &hints) |
| virtual QWidget * | createEditor (QWidget *parent, const QStyleOptionViewItem &option) |
| virtual QVariant | editorData (QWidget *editor) |
| virtual bool | setEditorData (QWidget *editor, const QVariant &data) |
| Property * | findPropertyObject (QObject *propertyObject) |
Protected Attributes | |
| QObject * | m_propertyObject |
| QString | m_hints |
| QString | m_info |
| bool | m_enabled |
Private Slots | |
| void | setValue (double value) |
| void | setValue (int value) |
| void | setValue (QColor value) |
| void | setValue (bool value) |
| void | setValue (QFont value) |
| void | setValue (QStringList value) |
| void | setValue (double value) |
| void | setValue (int value) |
| void | setValue (QColor value) |
| void | setValue (bool value) |
The Property class is the base class for all properties in the QPropertyEditor You can implement custom properties inherited from this class to further enhance the functionality of the QPropertyEditor
| Property::Property | ( | const QString & | name = QString(), |
| QObject * | propertyObject = 0, | ||
| QObject * | parent = 0 ) |
Constructor
| name | the name of the property within the propertyObject (will be used in the QPropertyEditorWidget view too) |
| propertyObject | the object that contains the property |
| parent | optional parent object |
| Property::Property | ( | const QString & | name = QString(), |
| QObject * | propertyObject = 0, | ||
| QObject * | parent = 0 ) |
Constructor
| name | the name of the property within the propertyObject (will be used in the QPropertyEditorWidget view too) |
| propertyObject | the object that contains the property |
| parent | optional parent object |
|
virtual |
Creates an editor for the data managed by this instance
| parent | widget the newly created editor widget will be child of |
| option | currently not used |
Reimplemented in EnumProperty, EnumProperty, and FlagsProperty.
|
virtual |
Creates an editor for the data managed by this instance
| parent | widget the newly created editor widget will be child of |
| option | currently not used |
Reimplemented in EnumProperty, EnumProperty, and FlagsProperty.
|
virtual |
The value stored by this property
|
virtual |
Returns the data of the editor widget used to manipulate this instance
Reimplemented in EnumProperty, EnumProperty, and FlagsProperty.
|
virtual |
Returns the data of the editor widget used to manipulate this instance
Reimplemented in EnumProperty, EnumProperty, and FlagsProperty.
|
inline |
returns optional settings for the editor widget that is used to manipulate the properties value
|
inline |
returns optional settings for the editor widget that is used to manipulate the properties value
| Property * Property::findPropertyObject | ( | QObject * | propertyObject | ) |
Tries to find the first property that manages the given propertyObject
| propertyObject |
| Property * Property::findPropertyObject | ( | QObject * | propertyObject | ) |
Tries to find the first property that manages the given propertyObject
| propertyObject |
| bool Property::isReadOnly | ( | ) |
Flag if the property can be set
| bool Property::isReadOnly | ( | ) |
Flag if the property can be set
|
inline |
Flag if property is used for indicating a group or really manages a property
|
inline |
Flag if property is used for indicating a group or really manages a property
|
inline |
Returns the QObject which contains the property managed by this instance
|
inline |
Returns the QObject which contains the property managed by this instance
|
inline |
Returns the row of this instance within the QPropertyModel
|
inline |
Returns the row of this instance within the QPropertyModel
|
virtual |
Changes the editor widget's data to a specific value
| editor | the editor widget |
| data | the data to set in the editor widget |
Reimplemented in EnumProperty, EnumProperty, and FlagsProperty.
|
virtual |
Changes the editor widget's data to a specific value
| editor | the editor widget |
| data | the data to set in the editor widget |
Reimplemented in EnumProperty, EnumProperty, and FlagsProperty.
|
inlinevirtual |
Sets properties for the editor widget that is used to manipulate the data value managed by this instance
| hints | a string containing property settings for the editor widget that manipulates this property |
Reimplemented in ito::AutoIntervalProperty, ito::QVector2DProperty, ito::QVector3DProperty, ito::QVector4DProperty, and Vec3fProperty.
|
inlinevirtual |
Sets properties for the editor widget that is used to manipulate the data value managed by this instance
| hints | a string containing property settings for the editor widget that manipulates this property |
Reimplemented in ito::AutoIntervalProperty, ito::QVector2DProperty, ito::QVector3DProperty, ito::QVector4DProperty, and Vec3fProperty.
|
virtual |
Sets the value stored by this property
| value | the data converted to a QVariant |
Reimplemented in ito::AutoIntervalProperty, ito::QVector2DProperty, ito::QVector3DProperty, ito::QVector4DProperty, and Vec3fProperty.
|
virtual |
Sets the value stored by this property
| value | the data converted to a QVariant |
Reimplemented in ito::AutoIntervalProperty, ito::QVector2DProperty, ito::QVector3DProperty, ito::QVector4DProperty, and Vec3fProperty.
|
privateslot |
This slot is used to immediately set the properties when the editor widget's value of a double or float property has changed
| value | the new value |
|
privateslot |
This slot is used to immediately set the properties when the editor widget's value of a double or float property has changed
| value | the new value |
|
privateslot |
This slot is used to immediately set the properties when the editor widget's value of an integer property has changed
| value | the new value |
|
privateslot |
This slot is used to immediately set the properties when the editor widget's value of an integer property has changed
| value | the new value |
|
virtual |
The value stored by this property
Reimplemented in EnumProperty, EnumProperty, FlagsProperty, ito::AutoIntervalProperty, ito::QVector2DProperty, ito::QVector3DProperty, ito::QVector4DProperty, and Vec3fProperty.
|
virtual |
The value stored by this property
Reimplemented in EnumProperty, EnumProperty, FlagsProperty, ito::AutoIntervalProperty, ito::QVector2DProperty, ito::QVector3DProperty, ito::QVector4DProperty, and Vec3fProperty.