The QtEnumEditorFactory class provides QComboBox widgets for properties created by QtEnumPropertyManager objects. More...
#include <qteditorfactory.h>
Public Member Functions | |
QtEnumEditorFactory (QObject *parent=nullptr) | |
~QtEnumEditorFactory () override | |
Public Member Functions inherited from QtAbstractEditorFactory< QtEnumPropertyManager > | |
void | addPropertyManager (QtEnumPropertyManager *manager) |
QWidget * | createEditor (QtProperty *property, QWidget *parent) override |
QtEnumPropertyManager * | propertyManager (QtProperty *property) const |
QSet< QtEnumPropertyManager * > | propertyManagers () const |
QtAbstractEditorFactory (QObject *parent) | |
void | removePropertyManager (QtEnumPropertyManager *manager) |
Protected Member Functions | |
void | connectPropertyManager (QtEnumPropertyManager *manager) override |
QWidget * | createEditor (QtEnumPropertyManager *manager, QtProperty *property, QWidget *parent) override |
void | disconnectPropertyManager (QtEnumPropertyManager *manager) override |
Protected Member Functions inherited from QtAbstractEditorFactory< QtEnumPropertyManager > | |
void | managerDestroyed (QObject *manager) override |
Protected Member Functions inherited from QtAbstractEditorFactoryBase | |
QtAbstractEditorFactoryBase (QObject *parent=nullptr) | |
Private Member Functions | |
Q_PRIVATE_SLOT (d_func(), void slotPropertyChanged(QtProperty *, int)) Q_PRIVATE_SLOT(d_func() | |
void void | slotEnumIconsChanged (QtProperty *, const QMap< int, QIcon > &)) Q_PRIVATE_SLOT(d_func() |
void | slotEnumNamesChanged (QtProperty *, const QStringList &)) Q_PRIVATE_SLOT(d_func() |
void void void | slotSetValue (int)) Q_PRIVATE_SLOT(d_func() |
Private Attributes | |
QtEnumEditorFactoryPrivate * | d_ptr |
Additional Inherited Members | |
Protected Slots inherited from QtAbstractEditorFactoryBase |
The QtEnumEditorFactory class provides QComboBox widgets for properties created by QtEnumPropertyManager objects.
QtEnumEditorFactory::QtEnumEditorFactory | ( | QObject * | parent = nullptr | ) |
Creates a factory with the given parent.
References d_ptr, and QtEnumEditorFactoryPrivate::q_ptr.
|
override |
Destroys this factory, and all the widgets it has created.
References d_ptr, and EditorFactoryPrivate< Editor >::m_editorToProperty.
|
overrideprotectedvirtual |
Reimplemented from the QtAbstractEditorFactory class.
Implements QtAbstractEditorFactory< QtEnumPropertyManager >.
References slotEnumNamesChanged().
|
overrideprotectedvirtual |
Reimplemented from the QtAbstractEditorFactory class.
Implements QtAbstractEditorFactory< QtEnumPropertyManager >.
References EditorFactoryPrivate< Editor >::createEditor(), d_ptr, QtEnumPropertyManager::enumIcons(), QtEnumPropertyManager::enumNames(), slotSetValue(), and QtEnumPropertyManager::value().
|
overrideprotectedvirtual |
Reimplemented from the QtAbstractEditorFactory class.
Implements QtAbstractEditorFactory< QtEnumPropertyManager >.
References slotEnumNamesChanged().
|
private |
|
private |
|
private |
Referenced by connectPropertyManager(), and disconnectPropertyManager().
|
private |
|
private |
Referenced by createEditor(), QtEnumEditorFactory(), and ~QtEnumEditorFactory().