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:
blacksun
2015-05-03 17:32:28 +00:00
parent a123a50e18
commit 67189f49f3
10 changed files with 351 additions and 198 deletions

View File

@@ -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();