Improve latest commit : add reset the text of conductors if checkbox

save_label isn't checked


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4602 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
scorpio810
2016-08-04 12:29:35 +00:00
parent 96f87271da
commit f88cea8847

View File

@@ -203,15 +203,15 @@ void PasteDiagramCommand::redo()
//Reset the text field tagged "label
if (ElementTextItem *eti = e ->taggedText("label"))
eti -> setPlainText("_");
//Reset the text of conductors
foreach (Conductor *c, content.conductorsToMove) {
ConductorProperties cp = c -> properties();
cp.text = c->diagram() ? c -> diagram() -> defaultConductorProperties.text : "_";
c -> setProperties(cp);
}
}
//Reset the text of conductors
foreach (Conductor *c, content.conductorsToMove) {
ConductorProperties cp = c -> properties();
cp.text = c->diagram() ? c -> diagram() -> defaultConductorProperties.text : "_";
c -> setProperties(cp);
}
}
}
else {
foreach (QGraphicsItem *item, content.items(filter)) {