Create a common widget to edit propertie

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3930 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2015-05-02 22:25:01 +00:00
parent a30f51f2ce
commit b7031a0009
9 changed files with 109 additions and 34 deletions

View File

@@ -22,7 +22,7 @@
#include "elementtextitem.h"
#include "diagramcommands.h"
#include <QtDebug>
#include <ui/elementpropertieswidget.h>
#include <elementpropertiesdialog.h>
#include "elementprovider.h"
#include "diagramposition.h"
#include "terminal.h"
@@ -51,7 +51,7 @@ Element::~Element() {
void Element::editProperty() {
if (diagram())
if(!diagram()->isReadOnly()){
elementpropertieswidget epw (this, diagram()->views().first());
ElementPropertiesDialog epw (this, diagram()->views().first());
connect(&epw, SIGNAL(editElementRequired(ElementsLocation)), diagram(), SIGNAL(editElementRequired(ElementsLocation)));
connect(&epw, SIGNAL(findElementRequired(ElementsLocation)), diagram(), SIGNAL(findElementRequired(ElementsLocation)));
epw.exec();