diagram editor : undo/redo of a rotation is now animated

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5296 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2018-04-04 16:55:59 +00:00
parent f0c0e7c5d5
commit 1450771081
3 changed files with 36 additions and 67 deletions

View File

@@ -22,11 +22,8 @@
#include <QPointer>
class Diagram;
class Element;
class QGraphicsObject;
class ElementTextItemGroup;
class DiagramTextItem;
class DiagramImageItem;
class ConductorTextItem;
class QPropertyUndoCommand;
/**
* @brief The RotateSelectionCommand class
@@ -45,11 +42,9 @@ class RotateSelectionCommand : public QUndoCommand
Diagram *m_diagram =nullptr;
qreal m_angle;
QList<QPointer<Element>> m_element;
QList<QPointer<DiagramImageItem>> m_image;
QList<QPointer<ElementTextItemGroup>> m_group;
QList<QPointer<DiagramTextItem>> m_text;
QHash<DiagramTextItem *, bool> m_rotate_by_user;
QList<QPointer<ConductorTextItem>> m_cond_text;
QHash<ConductorTextItem *, bool> m_rotate_by_user;
QList<QPropertyUndoCommand*> m_undo;
};