Desactivation de la contre-rotation appliquee aux champs de texte sans FollowParentRotation lors du pivotement de leur element parent

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@949 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavier
2010-04-11 16:03:40 +00:00
parent b720dc4fa2
commit 84c557f68d

View File

@@ -164,8 +164,9 @@ bool Element::setOrientation(QET::Orientation o) {
ori.setCurrent(o);
update();
foreach(QGraphicsItem *qgi, childItems()) {
if (Terminal *p = qgraphicsitem_cast<Terminal *>(qgi)) p -> updateConductor();
else if (ElementTextItem *eti = qgraphicsitem_cast<ElementTextItem *>(qgi)) {
if (Terminal *p = qgraphicsitem_cast<Terminal *>(qgi)) {
p -> updateConductor();
} /* else if (ElementTextItem *eti = qgraphicsitem_cast<ElementTextItem *>(qgi)) {
// applique une rotation contraire si besoin
if (!eti -> followParentRotations()) {
QMatrix new_matrix = eti -> matrix();
@@ -177,6 +178,7 @@ bool Element::setOrientation(QET::Orientation o) {
eti -> setMatrix(new_matrix);
}
}
*/
}
return(true);
}