Dock properties editor : when selection change dock try to stay in the same tab with the new selection (if possible)

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3990 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2015-05-25 10:22:00 +00:00
parent 175029dc2d
commit db173a1c39
14 changed files with 234 additions and 47 deletions

View File

@@ -18,8 +18,9 @@
#ifndef LINKSINGLEELEMENTWIDGET_H
#define LINKSINGLEELEMENTWIDGET_H
#include "PropertiesEditor/propertieseditorwidget.h"
#include "element.h"
#include "abstractelementpropertieseditorwidget.h"
class Diagram;
class QLineEdit;
@@ -39,7 +40,7 @@ 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 PropertiesEditorWidget
class LinkSingleElementWidget : public AbstractElementPropertiesEditorWidget
{
Q_OBJECT
@@ -72,7 +73,6 @@ class LinkSingleElementWidget : public PropertiesEditorWidget
///Attributes
private:
Ui::LinkSingleElementWidget *ui;
Element *m_element;
ElementSelectorWidget *esw_;
QList <Diagram *> diagram_list;
QWidget *unlink_widget;