mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-13 20:23:04 +02:00
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:
parent
52f71b89c3
commit
bd76d66b31
@ -83,20 +83,6 @@ int ElementsMover::beginMovement(Diagram *diagram, QGraphicsItem *driver_item) {
|
||||
}
|
||||
}
|
||||
|
||||
/* 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);
|
||||
|
||||
/* At this point, we've got all info to manage movement.
|
||||
|
@ -57,6 +57,5 @@ class ElementsMover {
|
||||
Diagram *diagram_;
|
||||
QGraphicsItem *movement_driver_;
|
||||
DiagramContent moved_content_;
|
||||
QHash<ConductorTextItem *, QPointF> updated_conductors_text_pos_;
|
||||
};
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user