Computer Assited Medical Intervention Tool Kit
version 4.1
|
The QtVariantEditorFactory class provides widgets for properties created by QtVariantPropertyManager objects. More...
#include <qtvariantproperty.h>
Inherits QtAbstractEditorFactory< QtVariantPropertyManager >.
Public Member Functions | |
QtVariantEditorFactory (QObject *parent=nullptr) | |
~QtVariantEditorFactory () override | |
Public Member Functions inherited from QtAbstractEditorFactory< QtVariantPropertyManager > | |
void | addPropertyManager (QtVariantPropertyManager *manager) |
QWidget * | createEditor (QtProperty *property, QWidget *parent) |
QtVariantPropertyManager * | propertyManager (QtProperty *property) const |
QSet< QtVariantPropertyManager *> | propertyManagers () const |
QtAbstractEditorFactory (QObject *parent) | |
void | removePropertyManager (QtVariantPropertyManager *manager) |
Protected Member Functions | |
void | connectPropertyManager (QtVariantPropertyManager *manager) override |
QWidget * | createEditor (QtVariantPropertyManager *manager, QtProperty *property, QWidget *parent) override |
void | disconnectPropertyManager (QtVariantPropertyManager *manager) override |
Protected Member Functions inherited from QtAbstractEditorFactory< QtVariantPropertyManager > | |
void | managerDestroyed (QObject *manager) |
Protected Member Functions inherited from QtAbstractEditorFactoryBase | |
QtAbstractEditorFactoryBase (QObject *parent=nullptr) | |
Private Attributes | |
QtVariantEditorFactoryPrivate * | d_ptr |
Additional Inherited Members | |
Protected Slots inherited from QtAbstractEditorFactoryBase |
The QtVariantEditorFactory class provides widgets for properties created by QtVariantPropertyManager objects.
The variant factory provides the following widgets for the specified property types:
Property Type Widget int
QSpinBox double
QDoubleSpinBox bool
QCheckBox QString QLineEdit QDate QDateEdit QTime QTimeEdit QDateTime QDateTimeEdit QKeySequence customized editor QChar customized editor enum
QComboBox QCursor QComboBox
Note that QtVariantPropertyManager supports several additional property types for which the QtVariantEditorFactory class does not provide editing widgets, e.g. QPoint and QSize. To provide widgets for other types using the variant approach, derive from the QtVariantEditorFactory class.
QtVariantEditorFactory::QtVariantEditorFactory | ( | QObject * | parent = nullptr | ) |
Creates a factory with the given parent.
References d_ptr, QtVariantPropertyManager::enumTypeId(), QtVariantEditorFactoryPrivate::m_charEditorFactory, QtVariantEditorFactoryPrivate::m_checkBoxFactory, QtVariantEditorFactoryPrivate::m_colorEditorFactory, QtVariantEditorFactoryPrivate::m_comboBoxFactory, QtVariantEditorFactoryPrivate::m_cursorEditorFactory, QtVariantEditorFactoryPrivate::m_dateEditFactory, QtVariantEditorFactoryPrivate::m_dateTimeEditFactory, QtVariantEditorFactoryPrivate::m_doubleSpinBoxFactory, QtVariantEditorFactoryPrivate::m_factoryToType, QtVariantEditorFactoryPrivate::m_fontEditorFactory, QtVariantEditorFactoryPrivate::m_keySequenceEditorFactory, QtVariantEditorFactoryPrivate::m_lineEditFactory, QtVariantEditorFactoryPrivate::m_spinBoxFactory, QtVariantEditorFactoryPrivate::m_timeEditFactory, QtVariantEditorFactoryPrivate::m_typeToFactory, and QtVariantEditorFactoryPrivate::q_ptr.
|
override |
Destroys this factory, and all the widgets it has created.
References d_ptr.
|
overrideprotectedvirtual |
Reimplemented from the QtAbstractEditorFactory class.
Implements QtAbstractEditorFactory< QtVariantPropertyManager >.
References QtAbstractEditorFactory< PropertyManager >::addPropertyManager(), d_ptr, QtVariantEditorFactoryPrivate::m_charEditorFactory, QtVariantEditorFactoryPrivate::m_checkBoxFactory, QtVariantEditorFactoryPrivate::m_colorEditorFactory, QtVariantEditorFactoryPrivate::m_comboBoxFactory, QtVariantEditorFactoryPrivate::m_cursorEditorFactory, QtVariantEditorFactoryPrivate::m_dateEditFactory, QtVariantEditorFactoryPrivate::m_dateTimeEditFactory, QtVariantEditorFactoryPrivate::m_doubleSpinBoxFactory, QtVariantEditorFactoryPrivate::m_fontEditorFactory, QtVariantEditorFactoryPrivate::m_keySequenceEditorFactory, QtVariantEditorFactoryPrivate::m_lineEditFactory, QtVariantEditorFactoryPrivate::m_spinBoxFactory, QtVariantEditorFactoryPrivate::m_timeEditFactory, QtFontPropertyManager::subBoolPropertyManager(), QtSizePolicyPropertyManager::subEnumPropertyManager(), QtFontPropertyManager::subEnumPropertyManager(), QtSizePolicyPropertyManager::subIntPropertyManager(), QtFontPropertyManager::subIntPropertyManager(), and QtColorPropertyManager::subIntPropertyManager().
|
overrideprotectedvirtual |
Reimplemented from the QtAbstractEditorFactory class.
Implements QtAbstractEditorFactory< QtVariantPropertyManager >.
References QtAbstractEditorFactoryBase::createEditor(), d_ptr, QtVariantEditorFactoryPrivate::m_typeToFactory, QtVariantPropertyManager::propertyType(), and wrappedProperty().
|
overrideprotectedvirtual |
Reimplemented from the QtAbstractEditorFactory class.
Implements QtAbstractEditorFactory< QtVariantPropertyManager >.
References d_ptr, QtVariantEditorFactoryPrivate::m_charEditorFactory, QtVariantEditorFactoryPrivate::m_checkBoxFactory, QtVariantEditorFactoryPrivate::m_colorEditorFactory, QtVariantEditorFactoryPrivate::m_comboBoxFactory, QtVariantEditorFactoryPrivate::m_cursorEditorFactory, QtVariantEditorFactoryPrivate::m_dateEditFactory, QtVariantEditorFactoryPrivate::m_dateTimeEditFactory, QtVariantEditorFactoryPrivate::m_doubleSpinBoxFactory, QtVariantEditorFactoryPrivate::m_fontEditorFactory, QtVariantEditorFactoryPrivate::m_keySequenceEditorFactory, QtVariantEditorFactoryPrivate::m_lineEditFactory, QtVariantEditorFactoryPrivate::m_spinBoxFactory, QtVariantEditorFactoryPrivate::m_timeEditFactory, QtAbstractEditorFactory< PropertyManager >::removePropertyManager(), QtFontPropertyManager::subBoolPropertyManager(), QtSizePolicyPropertyManager::subEnumPropertyManager(), QtFontPropertyManager::subEnumPropertyManager(), QtSizePolicyPropertyManager::subIntPropertyManager(), QtFontPropertyManager::subIntPropertyManager(), and QtColorPropertyManager::subIntPropertyManager().
|
private |