move undo command: graphics item is animated when undo/redo (testing)

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3202 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2014-07-09 16:50:30 +00:00
parent 844167f181
commit 5a8bb42153
3 changed files with 52 additions and 6 deletions

View File

@@ -245,6 +245,9 @@ class MoveElementsCommand : public QUndoCommand {
virtual void redo();
virtual void move(const QPointF &);
virtual void addConductorTextItemMovement(ConductorTextItem *, const QPointF &, const QPointF &);
private:
void setupAnimation (QObject * target, const QByteArray &propertyName, const QVariant start, const QVariant end);
// attributes
private:
@@ -254,6 +257,8 @@ class MoveElementsCommand : public QUndoCommand {
DiagramContent content_to_move;
/// applied movement
QPointF movement;
///animation group
QParallelAnimationGroup *m_anim_group;
/**
Moving elements impacts their conductors: either they are moved, or their path
needs to be generated again, which in turn tends to move their child text