From 84c557f68dcd4d28877166097b9c01d79dc9dd2a Mon Sep 17 00:00:00 2001 From: xavier Date: Sun, 11 Apr 2010 16:03:40 +0000 Subject: [PATCH] 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 --- sources/element.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sources/element.cpp b/sources/element.cpp index 9a5eba22e..84f570fa6 100644 --- a/sources/element.cpp +++ b/sources/element.cpp @@ -164,8 +164,9 @@ bool Element::setOrientation(QET::Orientation o) { ori.setCurrent(o); update(); foreach(QGraphicsItem *qgi, childItems()) { - if (Terminal *p = qgraphicsitem_cast(qgi)) p -> updateConductor(); - else if (ElementTextItem *eti = qgraphicsitem_cast(qgi)) { + if (Terminal *p = qgraphicsitem_cast(qgi)) { + p -> updateConductor(); + } /* else if (ElementTextItem *eti = qgraphicsitem_cast(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); }