mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 14:50:53 +01:00
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:
@@ -203,15 +203,15 @@ void PasteDiagramCommand::redo()
|
|||||||
//Reset the text field tagged "label
|
//Reset the text field tagged "label
|
||||||
if (ElementTextItem *eti = e ->taggedText("label"))
|
if (ElementTextItem *eti = e ->taggedText("label"))
|
||||||
eti -> setPlainText("_");
|
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 {
|
else {
|
||||||
foreach (QGraphicsItem *item, content.items(filter)) {
|
foreach (QGraphicsItem *item, content.items(filter)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user