Element mover : remove unused var

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3398 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun 2014-10-25 14:51:02 +00:00
parent 52f71b89c3
commit bd76d66b31
2 changed files with 0 additions and 15 deletions

View File

@ -82,20 +82,6 @@ int ElementsMover::beginMovement(Diagram *diagram, QGraphicsItem *driver_item) {
moved_content_.clear(); moved_content_.clear();
} }
} }
/* We need to save the position of conductor text (ConductorTextItem)
* if the position is defined by user
* It's needed only for conductors whose the path will be recalculated */
foreach(Conductor *conductor, moved_content_.conductorsToUpdate) {
if (ConductorTextItem *text_item = conductor -> textItem()) {
if (text_item -> wasMovedByUser()) {
updated_conductors_text_pos_.insert(
text_item,
text_item -> pos()
);
}
}
}
if (!moved_content_.count()) return(-1); if (!moved_content_.count()) return(-1);

View File

@ -57,6 +57,5 @@ class ElementsMover {
Diagram *diagram_; Diagram *diagram_;
QGraphicsItem *movement_driver_; QGraphicsItem *movement_driver_;
DiagramContent moved_content_; DiagramContent moved_content_;
QHash<ConductorTextItem *, QPointF> updated_conductors_text_pos_;
}; };
#endif #endif