QtSpinBoxFactory Class Reference

The QtSpinBoxFactory class provides QSpinBox widgets for properties created by QtIntPropertyManager objects. More...

#include <ArmarXGui/libraries/qtpropertybrowser/src/qteditorfactory.h>

+ Inheritance diagram for QtSpinBoxFactory:

Public Member Functions

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

Protected Member Functions

void connectPropertyManager (QtIntPropertyManager *manager) override
 
QWidget * createEditor (QtIntPropertyManager *manager, QtProperty *property, QWidget *parent) override
 
void disconnectPropertyManager (QtIntPropertyManager *manager) override
 
- Protected Member Functions inherited from QtAbstractEditorFactory< QtIntPropertyManager >
void managerDestroyed (QObject *manager) override
 
- Protected Member Functions inherited from QtAbstractEditorFactoryBase
 QtAbstractEditorFactoryBase (QObject *parent=0)
 

Additional Inherited Members

- Protected Slots inherited from QtAbstractEditorFactoryBase

Detailed Description

The QtSpinBoxFactory class provides QSpinBox widgets for properties created by QtIntPropertyManager objects.

See also
QtAbstractEditorFactory, QtIntPropertyManager

Definition at line 50 of file qteditorfactory.h.

Constructor & Destructor Documentation

◆ QtSpinBoxFactory()

QtSpinBoxFactory ( QObject *  parent = 0)

Creates a factory with the given parent.

Definition at line 298 of file qteditorfactory.cpp.

◆ ~QtSpinBoxFactory()

~QtSpinBoxFactory ( )
override

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

Definition at line 309 of file qteditorfactory.cpp.

Member Function Documentation

◆ connectPropertyManager()

void connectPropertyManager ( QtIntPropertyManager manager)
overrideprotectedvirtual

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< QtIntPropertyManager >.

Definition at line 320 of file qteditorfactory.cpp.

◆ createEditor()

QWidget * createEditor ( QtIntPropertyManager manager,
QtProperty property,
QWidget *  parent 
)
overrideprotectedvirtual

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< QtIntPropertyManager >.

Definition at line 337 of file qteditorfactory.cpp.

+ Here is the call graph for this function:

◆ disconnectPropertyManager()

void disconnectPropertyManager ( QtIntPropertyManager manager)
overrideprotectedvirtual

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< QtIntPropertyManager >.

Definition at line 358 of file qteditorfactory.cpp.


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