#include <EnumProperty.h>
|
| 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) |
|
| 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 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) |
|
Property * | findPropertyObject (QObject *propertyObject) |
|
| 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) |
|
|
QObject * | m_propertyObject |
|
QString | m_hints |
|
QString | m_info |
|
bool | m_enabled |
|
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.
- Author
- Roman Schmid
QWidget * EnumProperty::createEditor |
( |
QWidget * |
parent, |
|
|
const QStyleOptionViewItem & |
option |
|
) |
| |
|
virtual |
virtual QWidget* EnumProperty::createEditor |
( |
QWidget * |
parent, |
|
|
const QStyleOptionViewItem & |
option |
|
) |
| |
|
virtual |
QVariant EnumProperty::editorData |
( |
QWidget * |
editor | ) |
|
|
virtual |
virtual QVariant EnumProperty::editorData |
( |
QWidget * |
editor | ) |
|
|
virtual |
virtual bool EnumProperty::setEditorData |
( |
QWidget * |
editor, |
|
|
const QVariant & |
data |
|
) |
| |
|
virtual |
bool EnumProperty::setEditorData |
( |
QWidget * |
editor, |
|
|
const QVariant & |
data |
|
) |
| |
|
virtual |
QVariant EnumProperty::value |
( |
int |
role = Qt::UserRole | ) |
const |
|
virtual |
virtual QVariant EnumProperty::value |
( |
int |
role = Qt::UserRole | ) |
const |
|
virtual |
void EnumProperty::valueChanged |
( |
const QString |
item | ) |
|
|
privateslot |
slot that is being called by the editor widget
void EnumProperty::valueChanged |
( |
const QString |
item | ) |
|
|
privateslot |
slot that is being called by the editor widget
QStringList EnumProperty::m_enum |
|
private |
QStringList with possible enum values
The documentation for this class was generated from the following files:
- C:/itom/sources/itom/QPropertyEditor/EnumProperty.h
- C:/itom/sources/itom/QPropertyEditor/EnumProperty.cpp