mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-07 06:10:52 +01:00
Element now use the pattern and variable of formula to create the label, both stored in diagram context (instead of the label with a pattern and formula, to create the final label)
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4795 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -1016,15 +1016,6 @@ void Diagram::addItem(QGraphicsItem *item)
|
||||
Element *elmt = static_cast<Element*>(item);
|
||||
foreach(ElementTextItem *eti, elmt->texts())
|
||||
connect (eti, &ElementTextItem::diagramTextChanged, this, &Diagram::diagramTextChanged);
|
||||
Element::kind linkType = elmt->linkType();
|
||||
if ((linkType == Element::Simple) ||
|
||||
(linkType == Element::Master) ||
|
||||
(linkType == Element::Slave) ||
|
||||
(linkType == Element::Terminale)) {
|
||||
CustomElement *celmt = static_cast<CustomElement*>(item);
|
||||
celmt->parseLabels();
|
||||
}
|
||||
elmt->updateLabel();
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user