Conductor : minor change and replace some methode by function.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3363 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2014-10-07 19:51:26 +00:00
parent 132f2a4719
commit 781a779b49
4 changed files with 54 additions and 65 deletions

View File

@@ -286,7 +286,7 @@ void DeleteElementsCommand::redo() {
QList <Conductor *> conductor_list;
conductor_list << c -> relatedPotentialConductors(false).toList();
if (conductor_list.count()) {
conductor_list.first() -> adjustTextItemPosition();
conductor_list.first() -> calculateTextItemPosition();
}
}
}
@@ -780,7 +780,7 @@ void RotateElementsCommand::undo() {
if (ConductorTextItem *cti = qgraphicsitem_cast<ConductorTextItem *>(dti)) {
cti -> forceRotateByUser(previous_rotate_by_user_[cti]);
(cti -> wasRotateByUser()) ? cti -> rotateBy(-applied_rotation_angle_) :
cti -> parentConductor() -> adjustTextItemPosition();
cti -> parentConductor() -> calculateTextItemPosition();
}
else {dti -> rotateBy(-applied_rotation_angle_);}
}