mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 22:00:35 +01:00
Correction d'un commentaire dans la classe ElementTextItem et des methodes de debug des classes PartText*
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1087 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user