QElectroTech 0.200.1-dev
Loading...
Searching...
No Matches
PropertiesEditorFactory Namespace Reference

Functions

PropertiesEditorWidgetpropertiesEditor (QAbstractItemModel *model, PropertiesEditorWidget *editor=nullptr, QWidget *parent=nullptr)
 PropertiesEditorFactory::propertiesEditor.
PropertiesEditorWidgetpropertiesEditor (QList< QGraphicsItem * > items, PropertiesEditorWidget *editor=nullptr, QWidget *parent=nullptr)
 propertiesEditor

Function Documentation

◆ propertiesEditor() [1/2]

PropertiesEditorWidget * PropertiesEditorFactory::propertiesEditor ( QAbstractItemModel * model,
PropertiesEditorWidget * editor = nullptr,
QWidget * parent = nullptr )

PropertiesEditorFactory::propertiesEditor.

Parameters
model: the model to be edited
editor: if the properties editor to be created is the same class as editor, the this function set item as edited item of editor and return editor
parent: parent widget of the returned editor
Returns
an editor or nullptr
Here is the caller graph for this function:

◆ propertiesEditor() [2/2]

PropertiesEditorWidget * PropertiesEditorFactory::propertiesEditor ( QList< QGraphicsItem * > items,
PropertiesEditorWidget * editor = nullptr,
QWidget * parent = nullptr )

propertiesEditor

Parameters
items: The items to be edited
editor: If the properties editor to be created is the same class as editor, then this function set item as edited item of editor and return editor
parent: parent widget of the returned editor
Returns
: an editor or nullptr;