diff --git a/sources/editor/parttext.cpp b/sources/editor/parttext.cpp index 047648e3f..6fdd56a84 100644 --- a/sources/editor/parttext.cpp +++ b/sources/editor/parttext.cpp @@ -298,11 +298,11 @@ void PartText::drawPoint(QPainter *painter, const QPointF &point) { 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 diff --git a/sources/editor/parttextfield.cpp b/sources/editor/parttextfield.cpp index 135c2060d..7f624c441 100644 --- a/sources/editor/parttextfield.cpp +++ b/sources/editor/parttextfield.cpp @@ -354,11 +354,11 @@ void PartTextField::drawPoint(QPainter *painter, const QPointF &point) { 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 diff --git a/sources/elementtextitem.cpp b/sources/elementtextitem.cpp index ac7a05e63..285821449 100644 --- a/sources/elementtextitem.cpp +++ b/sources/elementtextitem.cpp @@ -183,11 +183,11 @@ qreal ElementTextItem::originalRotationAngle() const { /** 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);