Bug fix : Conductor text with formula that contain %id isn't good when open project (variable %id is replaced by 0 in each folio)

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4746 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2016-10-17 14:26:13 +00:00
parent ccf7e1dbde
commit 6ea169e1f7
6 changed files with 64 additions and 41 deletions

View File

@@ -983,9 +983,19 @@ QDomElement Diagram::writeXml(QDomDocument &xml_doc) const {
return(new_node.toElement());
}
void Diagram::initElementsLinks() {
/**
* @brief Diagram::refreshContents
* refresh all content of diagram.
* - refresh conductor text.
* - linking the elements waiting to be linked
*/
void Diagram::refreshContents() {
foreach (Element *elmt, elements())
elmt->initLink(project());
foreach (Conductor *conductor, conductors())
conductor->refreshText();
}
/**
@@ -1506,7 +1516,7 @@ bool Diagram::freezeNewElements() {
*/
void Diagram::freezeConductors() {
foreach (Conductor *cnd, conductors()) {
cnd->freezeLabel();
cnd->setFreezeLabel(true);
}
}
@@ -1516,7 +1526,7 @@ void Diagram::freezeConductors() {
*/
void Diagram::unfreezeConductors() {
foreach (Conductor *cnd, conductors()) {
cnd->unfreezeLabel();
cnd->setFreezeLabel(false);
}
}