[qet] [1087] Correction d' un commentaire dans la classe ElementTextItem et des methodes de debug des classes PartText*

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


Revision: 1087
Author:   xavier
Date:     2010-07-25 16:17:05 +0200 (Sun, 25 Jul 2010)
Log Message:
-----------
Correction d'un commentaire dans la classe ElementTextItem et des methodes de debug des classes PartText*

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

Modified: branches/0.3/sources/editor/parttext.cpp
===================================================================
--- branches/0.3/sources/editor/parttext.cpp	2010-07-25 11:10:26 UTC (rev 1086)
+++ branches/0.3/sources/editor/parttext.cpp	2010-07-25 14:17:05 UTC (rev 1087)
@@ -298,11 +298,11 @@
 	qreal py = point.y();
 	qreal size_1 = 5.0;
 	qreal size_2 = 1.0;
-	painter -> drawLine(px, py, px + size_1, py);
-	painter -> drawLine(px + size_1 - size_2, py - size_2, px + size_1, py);
-	painter -> drawLine(px + size_1 - size_2, py + size_2, px + size_1, py);
-	painter -> drawLine(px, py, px, py + size_1);
-	painter -> drawLine(px, py + size_1, px - size_2, py + size_1 - size_2);
-	painter -> drawLine(px, py + size_1, px + size_2, py + size_1 - size_2);
+	painter -> drawLine(QLineF(px, py, px + size_1, py));
+	painter -> drawLine(QLineF(px + size_1 - size_2, py - size_2, px + size_1, py));
+	painter -> drawLine(QLineF(px + size_1 - size_2, py + size_2, px + size_1, py));
+	painter -> drawLine(QLineF(px, py, px, py + size_1));
+	painter -> drawLine(QLineF(px, py + size_1, px - size_2, py + size_1 - size_2));
+	painter -> drawLine(QLineF(px, py + size_1, px + size_2, py + size_1 - size_2));
 }
 #endif

Modified: branches/0.3/sources/editor/parttextfield.cpp
===================================================================
--- branches/0.3/sources/editor/parttextfield.cpp	2010-07-25 11:10:26 UTC (rev 1086)
+++ branches/0.3/sources/editor/parttextfield.cpp	2010-07-25 14:17:05 UTC (rev 1087)
@@ -354,11 +354,11 @@
 	qreal py = point.y();
 	qreal size_1 = 5.0;
 	qreal size_2 = 1.0;
-	painter -> drawLine(px, py, px + size_1, py);
-	painter -> drawLine(px + size_1 - size_2, py - size_2, px + size_1, py);
-	painter -> drawLine(px + size_1 - size_2, py + size_2, px + size_1, py);
-	painter -> drawLine(px, py, px, py + size_1);
-	painter -> drawLine(px, py + size_1, px - size_2, py + size_1 - size_2);
-	painter -> drawLine(px, py + size_1, px + size_2, py + size_1 - size_2);
+	painter -> drawLine(QLineF(px, py, px + size_1, py));
+	painter -> drawLine(QLineF(px + size_1 - size_2, py - size_2, px + size_1, py));
+	painter -> drawLine(QLineF(px + size_1 - size_2, py + size_2, px + size_1, py));
+	painter -> drawLine(QLineF(px, py, px, py + size_1);)
+	painter -> drawLine(QLineF(px, py + size_1, px - size_2, py + size_1 - size_2));
+	painter -> drawLine(QLineF(px, py + size_1, px + size_2, py + size_1 - size_2));
 }
 #endif

Modified: branches/0.3/sources/elementtextitem.cpp
===================================================================
--- branches/0.3/sources/elementtextitem.cpp	2010-07-25 11:10:26 UTC (rev 1086)
+++ branches/0.3/sources/elementtextitem.cpp	2010-07-25 14:17:05 UTC (rev 1087)
@@ -183,11 +183,11 @@
 
 /**
 	Cette methode s'assure que la position de l'ElementTextItem est coherente
-	en repositionnant son origine (c-a-d le milieu du bord gauche du champ de
-	texte) a la position originale. Cela est notamment utile lorsque le champ
-	de texte est agrandi ou retreci verticalement (ajout ou retrait de lignes).
+	en ajustant :
+      * la transformation de base qui permet de considerer que l'origine
+	correspond au milieu du bord gauche du champ de texte
+      * l'origine utilisee lors des appels a setRotation et setScale
 	@param new_block_count Nombre de blocs dans l'ElementTextItem
-	@see originalPos()
 */
 void ElementTextItem::adjustItemPosition(int new_block_count) {
 	Q_UNUSED(new_block_count);


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