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.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3429 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2014-11-01 22:01:59 +00:00
parent 1252288ad1
commit 0c5035d12d
2 changed files with 3 additions and 0 deletions

View File

@@ -60,6 +60,7 @@ void SlaveElement::linkToElement(Element *elmt) {
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 @@ void SlaveElement::unlinkElement(Element *elmt) {
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;