[qet] [2911] Shapes Move: Undo/Redo added

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


Revision: 2911
Author:   abhishekm71
Date:     2014-03-07 09:47:56 +0100 (Fri, 07 Mar 2014)
Log Message:
-----------
Shapes Move: Undo/Redo added

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

Modified: trunk/sources/diagramcommands.cpp
===================================================================
--- trunk/sources/diagramcommands.cpp	2014-03-07 08:05:25 UTC (rev 2910)
+++ trunk/sources/diagramcommands.cpp	2014-03-07 08:47:56 UTC (rev 2911)
@@ -424,7 +424,8 @@
 		DiagramContent::TextFields |
 		DiagramContent::ConductorsToUpdate |
 		DiagramContent::ConductorsToMove |
-		DiagramContent::Images
+		DiagramContent::Images |
+		DiagramContent::Shapes
 	);
 	
 	setText(
@@ -492,6 +493,11 @@
 	foreach (DiagramImageItem *dii, content_to_move.images) {
 		dii -> setPos(dii -> pos() + actual_movement);
 	}
+
+	// deplace les shapes
+	foreach (QetShapeItem *dsi, content_to_move.shapes) {
+		dsi -> setPos(dsi -> pos() + actual_movement);
+	}
 }
 
 /**


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