Computer Assited Medical Intervention Tool Kit  version 5.0
QtDateEditFactory Class Reference

The QtDateEditFactory class provides QDateEdit widgets for properties created by QtDatePropertyManager objects. More...

#include <qteditorfactory.h>

+ Inheritance diagram for QtDateEditFactory:
+ Collaboration diagram for QtDateEditFactory:

Public Member Functions

 QtDateEditFactory (QObject *parent=nullptr)
 
 ~QtDateEditFactory () override
 
- Public Member Functions inherited from QtAbstractEditorFactory< QtDatePropertyManager >
void addPropertyManager (QtDatePropertyManager *manager)
 
QWidget * createEditor (QtProperty *property, QWidget *parent) override
 
QtDatePropertyManagerpropertyManager (QtProperty *property) const
 
QSet< QtDatePropertyManager * > propertyManagers () const
 
 QtAbstractEditorFactory (QObject *parent)
 
void removePropertyManager (QtDatePropertyManager *manager)
 

Protected Member Functions

void connectPropertyManager (QtDatePropertyManager *manager) override
 
QWidget * createEditor (QtDatePropertyManager *manager, QtProperty *property, QWidget *parent) override
 
void disconnectPropertyManager (QtDatePropertyManager *manager) override
 
- Protected Member Functions inherited from QtAbstractEditorFactory< QtDatePropertyManager >
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 *, 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

QtDateEditFactoryPrivated_ptr
 

Additional Inherited Members

- Protected Slots inherited from QtAbstractEditorFactoryBase

Detailed Description

The QtDateEditFactory class provides QDateEdit widgets for properties created by QtDatePropertyManager objects.

See also
QtAbstractEditorFactory, QtDatePropertyManager

Constructor & Destructor Documentation

◆ QtDateEditFactory()

QtDateEditFactory::QtDateEditFactory ( QObject *  parent = nullptr)

Creates a factory with the given parent.

References d_ptr, and QtDateEditFactoryPrivate::q_ptr.

◆ ~QtDateEditFactory()

QtDateEditFactory::~QtDateEditFactory ( )
override

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

References d_ptr, and EditorFactoryPrivate< Editor >::m_editorToProperty.

Member Function Documentation

◆ connectPropertyManager()

void QtDateEditFactory::connectPropertyManager ( QtDatePropertyManager manager)
overrideprotectedvirtual

Reimplemented from the QtAbstractEditorFactory class.

Implements QtAbstractEditorFactory< QtDatePropertyManager >.

References slotRangeChanged().

+ Here is the call graph for this function:

◆ createEditor()

QWidget * QtDateEditFactory::createEditor ( QtDatePropertyManager manager,
QtProperty property,
QWidget *  parent 
)
overrideprotectedvirtual

Reimplemented from the QtAbstractEditorFactory class.

Implements QtAbstractEditorFactory< QtDatePropertyManager >.

References EditorFactoryPrivate< Editor >::createEditor(), d_ptr, QtDatePropertyManager::maximum(), QtDatePropertyManager::minimum(), slotSetValue(), and QtDatePropertyManager::value().

+ Here is the call graph for this function:

◆ disconnectPropertyManager()

void QtDateEditFactory::disconnectPropertyManager ( QtDatePropertyManager manager)
overrideprotectedvirtual

Reimplemented from the QtAbstractEditorFactory class.

Implements QtAbstractEditorFactory< QtDatePropertyManager >.

References slotRangeChanged().

+ Here is the call graph for this function:

◆ Q_PRIVATE_SLOT()

QtDateEditFactory::Q_PRIVATE_SLOT ( d_func()  ,
void   slotPropertyChangedQtProperty *, const QDate & 
)
private

◆ slotRangeChanged()

void QtDateEditFactory::slotRangeChanged ( QtProperty ,
const QDate &  ,
const QDate &   
)
private

Referenced by connectPropertyManager(), and disconnectPropertyManager().

+ Here is the caller graph for this function:

◆ slotSetValue()

void void QtDateEditFactory::slotSetValue ( const QDate &  )
private

Referenced by createEditor().

+ Here is the caller graph for this function:

Member Data Documentation

◆ d_ptr

QtDateEditFactoryPrivate* QtDateEditFactory::d_ptr
private

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