[qet] [827] Correction de la revision 826

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


Revision: 827
Author:   xavier
Date:     2010-01-01 22:31:57 +0100 (Fri, 01 Jan 2010)
Log Message:
-----------
Correction de la revision 826

Modified Paths:
--------------
    branches/0.3/sources/editor/parttextfield.cpp

Modified: branches/0.3/sources/editor/parttextfield.cpp
===================================================================
--- branches/0.3/sources/editor/parttextfield.cpp	2010-01-01 21:29:10 UTC (rev 826)
+++ branches/0.3/sources/editor/parttextfield.cpp	2010-01-01 21:31:57 UTC (rev 827)
@@ -285,12 +285,12 @@
 	@param value Valeur numerique relative au changement
 */
 QVariant PartTextField::itemChange(GraphicsItemChange change, const QVariant &value) {
-	if (change == QGraphicsItem::ItemPositionHasChanged) {
+	if (change == QGraphicsItem::ItemPositionHasChanged || change == QGraphicsItem::ItemSceneHasChanged) {
 		// memorise la nouvelle position "officielle" du champ de texte
 		// cette information servira a le recentrer en cas d'ajout / retrait de lignes
 		known_position_ = pos();
 		infos -> updateForm();
-	} else if (change == QGraphicsItem::ItemSelectedHasChanged || change == QGraphicsItem::ItemSceneHasChanged) {
+	} else if (change == QGraphicsItem::ItemSelectedHasChanged) {
 		if (value.toBool() == true) {
 			infos -> updateForm();
 		}


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