[qet] [3429] Info about Linked element ( cross ref item and info about pos of master for the slave element) is updated when a diagram is removed from project.

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 3429
Author:   blacksun
Date:     2014-11-01 23:01:59 +0100 (Sat, 01 Nov 2014)
Log Message:
-----------
Info about Linked element (cross ref item and info about pos of master for the slave element) is updated when a diagram is removed from project.

Modified Paths:
--------------
    trunk/sources/qetgraphicsitem/crossrefitem.cpp
    trunk/sources/qetgraphicsitem/slaveelement.cpp

Modified: trunk/sources/qetgraphicsitem/crossrefitem.cpp
===================================================================
--- trunk/sources/qetgraphicsitem/crossrefitem.cpp	2014-11-01 11:09:58 UTC (rev 3428)
+++ trunk/sources/qetgraphicsitem/crossrefitem.cpp	2014-11-01 22:01:59 UTC (rev 3429)
@@ -40,6 +40,7 @@
 
 	connect(elmt,                           SIGNAL(elementInfoChange(DiagramContext)),                this, SLOT(updateLabel()));
 	connect(elmt -> diagram() -> project(), SIGNAL(projectDiagramsOrderChanged(QETProject*,int,int)), this, SLOT(updateLabel()));
+	connect(elmt -> diagram() -> project(), SIGNAL(diagramRemoved(QETProject*,Diagram*)),             this, SLOT(updateLabel()));
 	connect(elmt -> diagram(),              SIGNAL(XRefPropertiesChanged()),                          this, SLOT(updateProperties()));
 
 	//set specific behavior related to the parent item.

Modified: trunk/sources/qetgraphicsitem/slaveelement.cpp
===================================================================
--- trunk/sources/qetgraphicsitem/slaveelement.cpp	2014-11-01 11:09:58 UTC (rev 3428)
+++ trunk/sources/qetgraphicsitem/slaveelement.cpp	2014-11-01 22:01:59 UTC (rev 3429)
@@ -60,6 +60,7 @@
 		connect(elmt,                 SIGNAL(yChanged()),                                       this, SLOT(updateLabel()));
 		connect(elmt,                 SIGNAL(elementInfoChange(DiagramContext)),                this, SLOT(updateLabel()));
 		connect(diagram()->project(), SIGNAL(projectDiagramsOrderChanged(QETProject*,int,int)), this, SLOT(updateLabel()));
+		connect(diagram()->project(), SIGNAL(diagramRemoved(QETProject*,Diagram*)),             this, SLOT(updateLabel()));
 
 		updateLabel();
 		elmt -> linkToElement(this);
@@ -93,6 +94,7 @@
 		disconnect(elmt,                 SIGNAL(yChanged()),                                       this, SLOT(updateLabel()));
 		disconnect(elmt,                 SIGNAL(elementInfoChange(DiagramContext)),                this, SLOT(updateLabel()));
 		disconnect(diagram()->project(), SIGNAL(projectDiagramsOrderChanged(QETProject*,int,int)), this, SLOT(updateLabel()));
+		disconnect(diagram()->project(), SIGNAL(diagramRemoved(QETProject*,Diagram*)),             this, SLOT(updateLabel()));
 
 		delete Xref_item; Xref_item = NULL;
 


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/