Diagram command : minor imrpovement

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3391 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2014-10-21 20:29:16 +00:00
parent 183ea8ca77
commit 50f897f688
5 changed files with 3 additions and 37 deletions

View File

@@ -159,7 +159,6 @@ class MoveElementsCommand : public QUndoCommand {
virtual void undo();
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);
@@ -174,13 +173,6 @@ class MoveElementsCommand : public QUndoCommand {
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
items. This attribute holds both new and previous positions for each moved
text item.
*/
QHash<ConductorTextItem *, QPair<QPointF, QPointF> > moved_conductor_texts_;
/// prevent the first call to redo()
bool first_redo;
};