[qet] [3498] Conductor: Paste a conductor reset the text

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 3498
Author:   blacksun
Date:     2014-11-17 23:32:06 +0100 (Mon, 17 Nov 2014)
Log Message:
-----------
Conductor: Paste a conductor reset the text

Modified Paths:
--------------
    trunk/sources/diagramcommands.cpp

Modified: trunk/sources/diagramcommands.cpp
===================================================================
--- trunk/sources/diagramcommands.cpp	2014-11-17 10:10:00 UTC (rev 3497)
+++ trunk/sources/diagramcommands.cpp	2014-11-17 22:32:06 UTC (rev 3498)
@@ -224,6 +224,13 @@
 					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);
+		}
 	}
 	else {
 		// paste the elements


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/