Dynamic element text item : when the source of text is label or composite text with variable %{label}, and the label of the element is created from a formula,

the displayed text of the dynamic text item is up to date according to the formula 


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5086 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2017-10-26 17:12:49 +00:00
parent 7e2134e0db
commit e2a49e4872
4 changed files with 149 additions and 7 deletions

View File

@@ -1014,13 +1014,18 @@ void Diagram::folioSequentialsFromXml(const QDomElement &root, QHash<QString, QS
* refresh all content of diagram.
* - refresh conductor text.
* - linking the elements waiting to be linked
* - Refresh the connection of the dynamic element text item (use for text with source of text label)
*/
void Diagram::refreshContents() {
foreach (Element *elmt, elements())
void Diagram::refreshContents()
{
for (Element *elmt : elements())
{
elmt->initLink(project());
for (DynamicElementTextItem *deti : elmt->dynamicTextItems())
deti->refreshLabelConnection();
}
foreach (Conductor *conductor, conductors())
for (Conductor *conductor : conductors())
conductor->refreshText();
}