QElectroTech  0.8-dev
Functions
PropertiesEditorFactory Namespace Reference

Functions

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

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;