diff --git a/sources/factory/elementpicturefactory.cpp b/sources/factory/elementpicturefactory.cpp index 522c1a721..5868da77c 100644 --- a/sources/factory/elementpicturefactory.cpp +++ b/sources/factory/elementpicturefactory.cpp @@ -519,6 +519,10 @@ void ElementPictureFactory::parseText(const QDomElement &dom, QPainter &painter, painter.rotate(dom.attribute("rotation", "0").toDouble()); /* + Moves the QPainter's coordinate system to render in the right place; + note: the font's ascent() is subtracted to determine the top left + corner of the text, whereas the position indicated corresponds + to the baseline. Deplace le systeme de coordonnees du QPainter pour effectuer le rendu au bon endroit ; note : on soustrait l'ascent() de la police pour determiner le coin superieur gauche du texte alors que la position diff --git a/sources/qet.cpp b/sources/qet.cpp index b73074f57..3537e24ba 100644 --- a/sources/qet.cpp +++ b/sources/qet.cpp @@ -576,8 +576,11 @@ qreal QET::round(qreal x, qreal epsilon) { } /** - @param angle Un angle quelconque + @param angle Un angle quelconque / any angle in degrees + @param positive (bool) @return l'angle passe en parametre, mais ramene entre -360.0 + 360.0 degres + the angle passed as a parameter, but reduced to between -360.0 +360.0 degrees + reduced to 0.0 .. 360.0, when bool-parameter is true */ qreal QET::correctAngle(const qreal &angle, const bool &positive) { // ramene l'angle demande entre -360.0 et +360.0 degres