[qet] [4602] Improve latest commit : add reset the text of conductors if checkbox |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 4602
Author: scorpio810
Date: 2016-08-04 14:29:35 +0200 (Thu, 04 Aug 2016)
Log Message:
-----------
Improve latest commit : add reset the text of conductors if checkbox
save_label isn't checked
Modified Paths:
--------------
trunk/sources/diagramcommands.cpp
Modified: trunk/sources/diagramcommands.cpp
===================================================================
--- trunk/sources/diagramcommands.cpp 2016-08-04 09:54:43 UTC (rev 4601)
+++ trunk/sources/diagramcommands.cpp 2016-08-04 12:29:35 UTC (rev 4602)
@@ -203,15 +203,15 @@
//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)) {