#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
◆ createEditor() [1/2]
| QWidget * EnumProperty::createEditor |
( |
QWidget * | parent, |
|
|
const QStyleOptionViewItem & | option ) |
|
virtual |
◆ createEditor() [2/2]
| virtual QWidget * EnumProperty::createEditor |
( |
QWidget * | parent, |
|
|
const QStyleOptionViewItem & | option ) |
|
virtual |
◆ editorData() [1/2]
| QVariant EnumProperty::editorData |
( |
QWidget * | editor | ) |
|
|
virtual |
◆ editorData() [2/2]
| virtual QVariant EnumProperty::editorData |
( |
QWidget * | editor | ) |
|
|
virtual |
◆ setEditorData() [1/2]
| bool EnumProperty::setEditorData |
( |
QWidget * | editor, |
|
|
const QVariant & | data ) |
|
virtual |
◆ setEditorData() [2/2]
| virtual bool EnumProperty::setEditorData |
( |
QWidget * | editor, |
|
|
const QVariant & | data ) |
|
virtual |
◆ value() [1/2]
| QVariant EnumProperty::value |
( |
int | role = Qt::UserRole | ) |
const |
|
virtual |
◆ value() [2/2]
| virtual QVariant EnumProperty::value |
( |
int | role = Qt::UserRole | ) |
const |
|
virtual |
◆ valueChanged [1/2]
| void EnumProperty::valueChanged |
( |
const QString | item | ) |
|
|
privateslot |
slot that is being called by the editor widget
◆ valueChanged [2/2]
| void EnumProperty::valueChanged |
( |
const QString | item | ) |
|
|
privateslot |
slot that is being called by the editor widget
◆ m_enum
| QStringList EnumProperty::m_enum |
|
private |
QStringList with possible enum values
The documentation for this class was generated from the following files:
- C:/Workspace/itom_development_VS2019_Qt5.15.2_x64/itomProject/itom/QPropertyEditor/EnumProperty.h
- C:/Workspace/itom_development_VS2019_Qt5.15.2_x64/itomProject/itom/QPropertyEditor/src/QPropertyEditor/EnumProperty.h
- C:/Workspace/itom_development_VS2019_Qt5.15.2_x64/itomProject/itom/QPropertyEditor/EnumProperty.cpp
- C:/Workspace/itom_development_VS2019_Qt5.15.2_x64/itomProject/itom/QPropertyEditor/src/QPropertyEditor/EnumProperty.cpp