Improve undo/redo for move by cursor key

This commit is contained in:
Marco Bubke
2010-02-08 16:51:23 +01:00
parent 3aa10a749f
commit f133d0ac8c
3 changed files with 15 additions and 0 deletions

View File

@@ -156,6 +156,7 @@ void MoveTool::keyPressEvent(QKeyEvent *event)
m_moveManipulator.setItems(movableItems);
// m_selectionIndicator.hide();
m_resizeIndicator.hide();
m_moveManipulator.beginRewriterTransaction();
}
switch(event->key()) {
@@ -180,6 +181,7 @@ void MoveTool::keyReleaseEvent(QKeyEvent *keyEvent)
}
if (!keyEvent->isAutoRepeat()) {
m_moveManipulator.beginRewriterTransaction();
m_moveManipulator.clear();
// m_selectionIndicator.show();
m_resizeIndicator.show();