itom
4.1.0
|
The QtDateEditFactory class provides QDateEdit widgets for properties created by QtDatePropertyManager objects. More...
Public Member Functions | |
QtDateEditFactory (QObject *parent=0) | |
~QtDateEditFactory () | |
Public Member Functions inherited from QtAbstractEditorFactory< QtDatePropertyManager > | |
QtAbstractEditorFactory (QObject *parent) | |
QWidget * | createEditor (QtProperty *property, QWidget *parent) |
void | addPropertyManager (QtDatePropertyManager *manager) |
void | removePropertyManager (QtDatePropertyManager *manager) |
QSet< QtDatePropertyManager * > | propertyManagers () const |
QtDatePropertyManager * | propertyManager (QtProperty *property) const |
Protected Member Functions | |
void | connectPropertyManager (QtDatePropertyManager *manager) |
QWidget * | createEditor (QtDatePropertyManager *manager, QtProperty *property, QWidget *parent) |
void | disconnectPropertyManager (QtDatePropertyManager *manager) |
Protected Member Functions inherited from QtAbstractEditorFactory< QtDatePropertyManager > | |
void | managerDestroyed (QObject *manager) |
Protected Member Functions inherited from QtAbstractEditorFactoryBase | |
QtAbstractEditorFactoryBase (QObject *parent=0) | |
Private Member Functions | |
Q_PRIVATE_SLOT (d_func(), void slotPropertyChanged(QtProperty *, const QDate &)) Q_PRIVATE_SLOT(d_func() | |
void | slotRangeChanged (QtProperty *, const QDate &, const QDate &)) Q_PRIVATE_SLOT(d_func() |
void void | slotSetValue (const QDate &)) Q_PRIVATE_SLOT(d_func() |
Private Attributes | |
QtDateEditFactoryPrivate * | d_ptr |
Additional Inherited Members | |
Protected Slots inherited from QtAbstractEditorFactoryBase |
The QtDateEditFactory class provides QDateEdit widgets for properties created by QtDatePropertyManager objects.
QtDateEditFactory::QtDateEditFactory | ( | QObject * | parent = 0 | ) |
Creates a factory with the given parent.
QtDateEditFactory::~QtDateEditFactory | ( | ) |
Destroys this factory, and all the widgets it has created.
|
protectedvirtual |
Connects this factory to the given manager's signals. The PropertyManager type is a template argument class, and represents the chosen QtAbstractPropertyManager subclass.
This function is used internally by the addPropertyManager() function, and makes it possible to update an editing widget when the associated property's data changes. This is typically done in custom slots responding to the signals emitted by the property's manager, e.g. QtIntPropertyManager::valueChanged() and QtIntPropertyManager::rangeChanged().
Implements QtAbstractEditorFactory< QtDatePropertyManager >.
|
protectedvirtual |
Creates an editing widget with the given parent for the specified property created by the given manager. The PropertyManager type is a template argument class, and represents the chosen QtAbstractPropertyManager subclass.
This function must be implemented in derived classes: It is recommended to store a pointer to the widget and map it to the given property, since the widget must be updated whenever the associated property's data changes. This is typically done in custom slots responding to the signals emitted by the property's manager, e.g. QtIntPropertyManager::valueChanged() and QtIntPropertyManager::rangeChanged().
Implements QtAbstractEditorFactory< QtDatePropertyManager >.
|
protectedvirtual |
Disconnects this factory from the given manager's signals. The PropertyManager type is a template argument class, and represents the chosen QtAbstractPropertyManager subclass.
This function is used internally by the removePropertyManager() function.
Implements QtAbstractEditorFactory< QtDatePropertyManager >.