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

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 949
Author:   xavier
Date:     2010-04-11 18:03:40 +0200 (Sun, 11 Apr 2010)
Log Message:
-----------
Desactivation de la contre-rotation appliquee aux champs de texte sans FollowParentRotation lors du pivotement de leur element parent

Modified Paths:
--------------
    branches/0.3/sources/element.cpp

Modified: branches/0.3/sources/element.cpp
===================================================================
--- branches/0.3/sources/element.cpp	2010-04-11 15:08:24 UTC (rev 948)
+++ branches/0.3/sources/element.cpp	2010-04-11 16:03:40 UTC (rev 949)
@@ -164,8 +164,9 @@
 	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 @@
 				eti -> setMatrix(new_matrix);
 			}
 		}
+		*/
 	}
 	return(true);
 }


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/