![]() |
itom
|
#include <FlagsProperty.h>
Public Member Functions | |
| FlagsProperty (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) |
Public Member Functions inherited from Property | |
| 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) |
Private Slots | |
| void | checkedIndexesChanged () |
Private Attributes | |
| QStringList | m_enum |
| QVector< int > | m_enumIndices |
| QWidget * | m_comboBox |
| bool | m_inModification |
Additional Inherited Members | |
Protected Attributes inherited from Property | |
| QObject * | m_propertyObject |
| QString | m_hints |
| QString | m_info |
| bool | m_enabled |
The Flags Property Class extends a Property to add flag / enum functionality to the QPropertyEditor. Flags Properties are automatically created in the QPropertyModel for objects that have an enum as property value which is a flag (or-combination of its own enumeration).
|
privateslot |
slot that is being called by the editor widget
|
virtual |
Reimplemented from Property.
|
virtual |
Reimplemented from Property.
|
virtual |
Reimplemented from Property.
|
virtual |
Reimplemented from Property.
|
private |
QStringList with possible enum values