mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
Shapes Move: Undo/Redo added
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2911 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -424,7 +424,8 @@ MoveElementsCommand::MoveElementsCommand(
|
||||
DiagramContent::TextFields |
|
||||
DiagramContent::ConductorsToUpdate |
|
||||
DiagramContent::ConductorsToMove |
|
||||
DiagramContent::Images
|
||||
DiagramContent::Images |
|
||||
DiagramContent::Shapes
|
||||
);
|
||||
|
||||
setText(
|
||||
@@ -492,6 +493,11 @@ void MoveElementsCommand::move(const QPointF &actual_movement) {
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user