Computer Assited Medical Intervention Tool Kit  version 5.0
QtLineEditFactory Class Reference

The QtLineEditFactory class provides QLineEdit widgets for properties created by QtStringPropertyManager objects. More...

#include <qteditorfactory.h>

+ Inheritance diagram for QtLineEditFactory:
+ Collaboration diagram for QtLineEditFactory:

Public Member Functions

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

Protected Member Functions

void connectPropertyManager (QtStringPropertyManager *manager) override
 
QWidget * createEditor (QtStringPropertyManager *manager, QtProperty *property, QWidget *parent) override
 
void disconnectPropertyManager (QtStringPropertyManager *manager) override
 
- Protected Member Functions inherited from QtAbstractEditorFactory< QtStringPropertyManager >
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 QString &)) Q_PRIVATE_SLOT(d_func()
 
void void slotEchoModeChanged (QtProperty *, int)) Q_PRIVATE_SLOT(d_func()
 
void slotRegExpChanged (QtProperty *, const QRegularExpression &)) Q_PRIVATE_SLOT(d_func()
 
void void void slotSetValue (const QString &)) Q_PRIVATE_SLOT(d_func()
 

Private Attributes

QtLineEditFactoryPrivated_ptr
 

Additional Inherited Members

- Protected Slots inherited from QtAbstractEditorFactoryBase

Detailed Description

The QtLineEditFactory class provides QLineEdit widgets for properties created by QtStringPropertyManager objects.

See also
QtAbstractEditorFactory, QtStringPropertyManager

Constructor & Destructor Documentation

◆ QtLineEditFactory()

QtLineEditFactory::QtLineEditFactory ( QObject *  parent = nullptr)

Creates a factory with the given parent.

References d_ptr, and QtLineEditFactoryPrivate::q_ptr.

◆ ~QtLineEditFactory()

QtLineEditFactory::~QtLineEditFactory ( )
override

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

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

Member Function Documentation

◆ connectPropertyManager()

void QtLineEditFactory::connectPropertyManager ( QtStringPropertyManager manager)
overrideprotectedvirtual

Reimplemented from the QtAbstractEditorFactory class.

Implements QtAbstractEditorFactory< QtStringPropertyManager >.

References slotEchoModeChanged(), and slotRegExpChanged().

+ Here is the call graph for this function:

◆ createEditor()

QWidget * QtLineEditFactory::createEditor ( QtStringPropertyManager manager,
QtProperty property,
QWidget *  parent 
)
overrideprotectedvirtual

Reimplemented from the QtAbstractEditorFactory class.

Implements QtAbstractEditorFactory< QtStringPropertyManager >.

References EditorFactoryPrivate< Editor >::createEditor(), d_ptr, QtStringPropertyManager::echoMode(), QtStringPropertyManager::regExp(), slotSetValue(), and QtStringPropertyManager::value().

+ Here is the call graph for this function:

◆ disconnectPropertyManager()

void QtLineEditFactory::disconnectPropertyManager ( QtStringPropertyManager manager)
overrideprotectedvirtual

Reimplemented from the QtAbstractEditorFactory class.

Implements QtAbstractEditorFactory< QtStringPropertyManager >.

References slotEchoModeChanged(), and slotRegExpChanged().

+ Here is the call graph for this function:

◆ Q_PRIVATE_SLOT()

QtLineEditFactory::Q_PRIVATE_SLOT ( d_func()  ,
void   slotPropertyChangedQtProperty *, const QString & 
)
private

◆ slotEchoModeChanged()

void void QtLineEditFactory::slotEchoModeChanged ( QtProperty ,
int   
)
private

Referenced by connectPropertyManager(), and disconnectPropertyManager().

+ Here is the caller graph for this function:

◆ slotRegExpChanged()

void QtLineEditFactory::slotRegExpChanged ( QtProperty ,
const QRegularExpression &   
)
private

Referenced by connectPropertyManager(), and disconnectPropertyManager().

+ Here is the caller graph for this function:

◆ slotSetValue()

void void void QtLineEditFactory::slotSetValue ( const QString &  )
private

Referenced by createEditor().

+ Here is the caller graph for this function:

Member Data Documentation

◆ d_ptr

QtLineEditFactoryPrivate* QtLineEditFactory::d_ptr
private

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