RioEngine
0.1
My first attempt to create a 3D WYSIWYG Game Engine
|
#include <enumproperty.h>
Public Member Functions | |
EnumProperty (const QString &name=QString(), QObject *propertyObject=0, QObject *parent=0) | |
virtual QVariant | value (int role=Qt::UserRole) const |
virtual QWidget * | createEditor (QWidget *parent, const QStyleOptionViewItem &option) |
virtual bool | setEditorData (QWidget *editor, const QVariant &data) |
virtual QVariant | editorData (QWidget *editor) |
![]() | |
Property (const QString &name=QString(), QObject *propertyObject=0, QObject *parent=0) | |
virtual void | setValue (const QVariant &value) |
QObject * | propertyObject () |
bool | isRoot () |
bool | isReadOnly () |
int | row () |
QString | editorHints () |
virtual void | setEditorHints (const QString &hints) |
Property * | findPropertyObject (QObject *propertyObject) |
Protected Attributes | |
QStringList | m_enum |
![]() | |
QObject * | m_propertyObject |
QString | m_hints |
Additional Inherited Members | |
![]() | |
void | propertyChanged (QObject *, QString, QVariant, QVariant) |
The Enum Property Class extends a Property to add enum functionality to the QPropertyEditor. Enum Properties are automatically created in the QPropertyModel for objects that have an enum as property value.
Definition at line 41 of file enumproperty.h.
EnumProperty::EnumProperty | ( | const QString & | name = QString() , |
QObject * | propertyObject = 0 , |
||
QObject * | parent = 0 |
||
) |
Definition at line 28 of file enumproperty.cpp.
|
virtual |
Reimplemented from Property.
Definition at line 68 of file enumproperty.cpp.
|
virtual |
Reimplemented from Property.
Definition at line 104 of file enumproperty.cpp.
|
virtual |
Reimplemented from Property.
Definition at line 81 of file enumproperty.cpp.
|
virtual |
Reimplemented from Property.
Reimplemented in CObjectTypesEnumProperty.
Definition at line 48 of file enumproperty.cpp.
|
protected |
QStringList with possible enum values
Definition at line 63 of file enumproperty.h.