QElectroTech  0.8-dev
Public Member Functions | List of all members
PropertiesEditorDialog Class Reference

The PropertiesEditorDialog class Create a dialog to edit some properties of a thing. Only create a instance of this class and call exec, all is done for you in this class. The first argument (a template) must be a subclass of QWidget and provide the 3 methods bellow : QString::title() void::apply() void::reset() You can subclass the interface PropertiesEditorWidget who provide all this methods. This dialog take ownership of the editor, so the editor will be deleted by this dialog. More...

#include <propertieseditordialog.h>

Inherits QDialog.

Collaboration diagram for PropertiesEditorDialog:
Collaboration graph

Public Member Functions

template<typename T >
 PropertiesEditorDialog (T editor, QWidget *parent=nullptr)
 

Detailed Description

The PropertiesEditorDialog class Create a dialog to edit some properties of a thing. Only create a instance of this class and call exec, all is done for you in this class. The first argument (a template) must be a subclass of QWidget and provide the 3 methods bellow : QString::title() void::apply() void::reset() You can subclass the interface PropertiesEditorWidget who provide all this methods. This dialog take ownership of the editor, so the editor will be deleted by this dialog.

Constructor & Destructor Documentation

◆ PropertiesEditorDialog()

template<typename T >
PropertiesEditorDialog::PropertiesEditorDialog ( editor,
QWidget *  parent = nullptr 
)
inline

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