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