mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-04-03 10:29:59 +02:00
Use PropertiesEditorWidget instead of QWidget for some widget (widget used to edit propertie of element)
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3932 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
#ifndef LINKSINGLEELEMENTWIDGET_H
|
||||
#define LINKSINGLEELEMENTWIDGET_H
|
||||
|
||||
#include <QWidget>
|
||||
#include "propertieseditorwidget.h"
|
||||
#include "element.h"
|
||||
|
||||
class Diagram;
|
||||
@@ -39,15 +39,18 @@ namespace Ui {
|
||||
* If the element is already linked, the widget ask user to unlink.
|
||||
* This widget embedded the diagram command for undo/redo the action
|
||||
*/
|
||||
class LinkSingleElementWidget : public QWidget
|
||||
class LinkSingleElementWidget : public PropertiesEditorWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
///Methods
|
||||
public:
|
||||
explicit LinkSingleElementWidget(Element *elmt, QWidget *parent = 0);
|
||||
~LinkSingleElementWidget();
|
||||
void apply();
|
||||
explicit LinkSingleElementWidget(Element *elmt, QWidget *parent = 0);
|
||||
~LinkSingleElementWidget();
|
||||
|
||||
void apply();
|
||||
QUndoCommand *associatedUndo() const;
|
||||
QString title() const;
|
||||
|
||||
private:
|
||||
void buildInterface();
|
||||
|
||||
Reference in New Issue
Block a user