Computer Assited Medical Intervention Tool Kit  version 5.0
QtCheckBoxFactory Class Reference

The QtCheckBoxFactory class provides QCheckBox widgets for properties created by QtBoolPropertyManager objects. More...

#include <qteditorfactory.h>

+ Inheritance diagram for QtCheckBoxFactory:
+ Collaboration diagram for QtCheckBoxFactory:

Public Member Functions

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

Protected Member Functions

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

Private Attributes

QtCheckBoxFactoryPrivated_ptr
 

Additional Inherited Members

- Protected Slots inherited from QtAbstractEditorFactoryBase

Detailed Description

The QtCheckBoxFactory class provides QCheckBox widgets for properties created by QtBoolPropertyManager objects.

See also
QtAbstractEditorFactory, QtBoolPropertyManager

Constructor & Destructor Documentation

◆ QtCheckBoxFactory()

QtCheckBoxFactory::QtCheckBoxFactory ( QObject *  parent = nullptr)

Creates a factory with the given parent.

References d_ptr, and QtCheckBoxFactoryPrivate::q_ptr.

◆ ~QtCheckBoxFactory()

QtCheckBoxFactory::~QtCheckBoxFactory ( )
override

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

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

Member Function Documentation

◆ connectPropertyManager()

void QtCheckBoxFactory::connectPropertyManager ( QtBoolPropertyManager manager)
overrideprotectedvirtual

◆ createEditor()

QWidget * QtCheckBoxFactory::createEditor ( QtBoolPropertyManager manager,
QtProperty property,
QWidget *  parent 
)
overrideprotectedvirtual

Reimplemented from the QtAbstractEditorFactory class.

Implements QtAbstractEditorFactory< QtBoolPropertyManager >.

References EditorFactoryPrivate< Editor >::createEditor(), d_ptr, QtBoolEdit::setChecked(), slotSetValue(), and QtBoolPropertyManager::value().

+ Here is the call graph for this function:

◆ disconnectPropertyManager()

void QtCheckBoxFactory::disconnectPropertyManager ( QtBoolPropertyManager manager)
overrideprotectedvirtual

◆ Q_PRIVATE_SLOT()

QtCheckBoxFactory::Q_PRIVATE_SLOT ( d_func()  ,
void   slotPropertyChangedQtProperty *, bool 
)
private

◆ slotSetValue()

void QtCheckBoxFactory::slotSetValue ( bool  )
private

Referenced by createEditor().

+ Here is the caller graph for this function:

Member Data Documentation

◆ d_ptr

QtCheckBoxFactoryPrivate* QtCheckBoxFactory::d_ptr
private

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