mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-04-24 05:00:00 +02:00
Fix bugtracker report N° 119 : Variable %F (of several element Xref) is not always up to date when the corresponding value of titleblock change.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4906 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -65,6 +65,7 @@ void MasterElement::linkToElement(Element *elmt)
|
||||
connect(elmt, SIGNAL(xChanged()), m_Xref_item, SLOT(updateLabel()));
|
||||
connect(elmt, SIGNAL(yChanged()), m_Xref_item, SLOT(updateLabel()));
|
||||
connect(elmt, SIGNAL(updateLabel()), m_Xref_item, SLOT(updateLabel()));
|
||||
connect(&elmt->diagram()->border_and_titleblock, &BorderTitleBlock::titleBlockFolioChanged, m_Xref_item, &CrossRefItem::updateLabel);
|
||||
m_Xref_item -> updateLabel();
|
||||
emit linkedElementChanged();
|
||||
}
|
||||
@@ -103,6 +104,7 @@ void MasterElement::unlinkElement(Element *elmt)
|
||||
disconnect(elmt, SIGNAL(xChanged()), m_Xref_item, SLOT(updateLabel()));
|
||||
disconnect(elmt, SIGNAL(yChanged()), m_Xref_item, SLOT(updateLabel()));
|
||||
disconnect(elmt, SIGNAL(updateLabel()), m_Xref_item, SLOT(updateLabel()));
|
||||
disconnect(&elmt->diagram()->border_and_titleblock, &BorderTitleBlock::titleBlockFolioChanged, m_Xref_item, &CrossRefItem::updateLabel);
|
||||
|
||||
m_Xref_item -> updateLabel();
|
||||
aboutDeleteXref();
|
||||
|
||||
Reference in New Issue
Block a user