mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 05:00:33 +01:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user