Computer Assited Medical Intervention Tool Kit  version 5.0
QtDoubleSpinBoxFactory Class Reference

The QtDoubleSpinBoxFactory class provides QDoubleSpinBox widgets for properties created by QtDoublePropertyManager objects. More...

#include <qteditorfactory.h>

+ Inheritance diagram for QtDoubleSpinBoxFactory:
+ Collaboration diagram for QtDoubleSpinBoxFactory:

Public Member Functions

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

Protected Member Functions

void connectPropertyManager (QtDoublePropertyManager *manager) override
 
QWidget * createEditor (QtDoublePropertyManager *manager, QtProperty *property, QWidget *parent) override
 
void disconnectPropertyManager (QtDoublePropertyManager *manager) override
 
- Protected Member Functions inherited from QtAbstractEditorFactory< QtDoublePropertyManager >
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 *, double)) Q_PRIVATE_SLOT(d_func()
 
void void void slotDecimalsChanged (QtProperty *, int)) Q_PRIVATE_SLOT(d_func()
 
void slotRangeChanged (QtProperty *, double, double)) Q_PRIVATE_SLOT(d_func()
 
void void void void slotSetValue (double)) Q_PRIVATE_SLOT(d_func()
 
void void slotSingleStepChanged (QtProperty *, double)) Q_PRIVATE_SLOT(d_func()
 

Private Attributes

QtDoubleSpinBoxFactoryPrivated_ptr
 

Additional Inherited Members

- Protected Slots inherited from QtAbstractEditorFactoryBase

Detailed Description

The QtDoubleSpinBoxFactory class provides QDoubleSpinBox widgets for properties created by QtDoublePropertyManager objects.

See also
QtAbstractEditorFactory, QtDoublePropertyManager

Constructor & Destructor Documentation

◆ QtDoubleSpinBoxFactory()

QtDoubleSpinBoxFactory::QtDoubleSpinBoxFactory ( QObject *  parent = nullptr)

Creates a factory with the given parent.

References d_ptr, and QtDoubleSpinBoxFactoryPrivate::q_ptr.

◆ ~QtDoubleSpinBoxFactory()

QtDoubleSpinBoxFactory::~QtDoubleSpinBoxFactory ( )
override

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

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

Member Function Documentation

◆ connectPropertyManager()

void QtDoubleSpinBoxFactory::connectPropertyManager ( QtDoublePropertyManager manager)
overrideprotectedvirtual

Reimplemented from the QtAbstractEditorFactory class.

Implements QtAbstractEditorFactory< QtDoublePropertyManager >.

References slotDecimalsChanged(), slotRangeChanged(), and slotSingleStepChanged().

+ Here is the call graph for this function:

◆ createEditor()

QWidget * QtDoubleSpinBoxFactory::createEditor ( QtDoublePropertyManager manager,
QtProperty property,
QWidget *  parent 
)
overrideprotectedvirtual

Reimplemented from the QtAbstractEditorFactory class.

Implements QtAbstractEditorFactory< QtDoublePropertyManager >.

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

+ Here is the call graph for this function:

◆ disconnectPropertyManager()

void QtDoubleSpinBoxFactory::disconnectPropertyManager ( QtDoublePropertyManager manager)
overrideprotectedvirtual

Reimplemented from the QtAbstractEditorFactory class.

Implements QtAbstractEditorFactory< QtDoublePropertyManager >.

References slotDecimalsChanged(), slotRangeChanged(), and slotSingleStepChanged().

+ Here is the call graph for this function:

◆ Q_PRIVATE_SLOT()

QtDoubleSpinBoxFactory::Q_PRIVATE_SLOT ( d_func()  ,
void   slotPropertyChangedQtProperty *, double 
)
private

◆ slotDecimalsChanged()

void void void QtDoubleSpinBoxFactory::slotDecimalsChanged ( QtProperty ,
int   
)
private

Referenced by connectPropertyManager(), and disconnectPropertyManager().

+ Here is the caller graph for this function:

◆ slotRangeChanged()

void QtDoubleSpinBoxFactory::slotRangeChanged ( QtProperty ,
double  ,
double   
)
private

Referenced by connectPropertyManager(), and disconnectPropertyManager().

+ Here is the caller graph for this function:

◆ slotSetValue()

void void void void QtDoubleSpinBoxFactory::slotSetValue ( double  )
private

Referenced by createEditor().

+ Here is the caller graph for this function:

◆ slotSingleStepChanged()

void void QtDoubleSpinBoxFactory::slotSingleStepChanged ( QtProperty ,
double   
)
private

Referenced by connectPropertyManager(), and disconnectPropertyManager().

+ Here is the caller graph for this function:

Member Data Documentation

◆ d_ptr

QtDoubleSpinBoxFactoryPrivate* QtDoubleSpinBoxFactory::d_ptr
private

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