itom  4.1.0
QtDateTimeEditFactory Class Reference

The QtDateTimeEditFactory class provides QDateTimeEdit widgets for properties created by QtDateTimePropertyManager objects. More...

Inheritance diagram for QtDateTimeEditFactory:
QtAbstractEditorFactory< QtDateTimePropertyManager > QtAbstractEditorFactoryBase

Public Member Functions

 QtDateTimeEditFactory (QObject *parent=0)
 
 ~QtDateTimeEditFactory ()
 
- Public Member Functions inherited from QtAbstractEditorFactory< QtDateTimePropertyManager >
 QtAbstractEditorFactory (QObject *parent)
 
QWidget * createEditor (QtProperty *property, QWidget *parent)
 
void addPropertyManager (QtDateTimePropertyManager *manager)
 
void removePropertyManager (QtDateTimePropertyManager *manager)
 
QSet< QtDateTimePropertyManager * > propertyManagers () const
 
QtDateTimePropertyManagerpropertyManager (QtProperty *property) const
 

Protected Member Functions

void connectPropertyManager (QtDateTimePropertyManager *manager)
 
QWidget * createEditor (QtDateTimePropertyManager *manager, QtProperty *property, QWidget *parent)
 
void disconnectPropertyManager (QtDateTimePropertyManager *manager)
 
- Protected Member Functions inherited from QtAbstractEditorFactory< QtDateTimePropertyManager >
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 QDateTime &)) Q_PRIVATE_SLOT(d_func()
 
void slotSetValue (const QDateTime &)) Q_PRIVATE_SLOT(d_func()
 

Private Attributes

QtDateTimeEditFactoryPrivated_ptr
 

Additional Inherited Members

- Protected Slots inherited from QtAbstractEditorFactoryBase

Detailed Description

The QtDateTimeEditFactory class provides QDateTimeEdit widgets for properties created by QtDateTimePropertyManager objects.

See also
QtAbstractEditorFactory, QtDateTimePropertyManager

Constructor & Destructor Documentation

QtDateTimeEditFactory::QtDateTimeEditFactory ( QObject *  parent = 0)

Creates a factory with the given parent.

QtDateTimeEditFactory::~QtDateTimeEditFactory ( )

Destroys this factory, and all the widgets it has created.

Member Function Documentation

void QtDateTimeEditFactory::connectPropertyManager ( QtDateTimePropertyManager manager)
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().

See also
propertyManagers(), disconnectPropertyManager()

Implements QtAbstractEditorFactory< QtDateTimePropertyManager >.

QWidget * QtDateTimeEditFactory::createEditor ( QtDateTimePropertyManager manager,
QtProperty property,
QWidget *  parent 
)
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().

See also
connectPropertyManager()

Implements QtAbstractEditorFactory< QtDateTimePropertyManager >.

void QtDateTimeEditFactory::disconnectPropertyManager ( QtDateTimePropertyManager manager)
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.

See also
propertyManagers(), connectPropertyManager()

Implements QtAbstractEditorFactory< QtDateTimePropertyManager >.


The documentation for this class was generated from the following files: