647 } |
647 } |
648 |
648 |
649 if (gl_drawangles) |
649 if (gl_drawangles) |
650 { QLineF l0 (poly[h], poly[i]), |
650 { QLineF l0 (poly[h], poly[i]), |
651 l1 (poly[i], poly[j]); |
651 l1 (poly[i], poly[j]); |
652 double angle = l0.angleTo (l1); |
652 double angle = 180 - l0.angleTo (l1); |
653 str label = str::number (angle) + str::fromUtf8 (QByteArray ("\302\260")); |
653 str label = str::number (angle) + str::fromUtf8 (QByteArray ("\302\260")); |
654 QPoint pos = poly[i]; |
654 QPoint pos = poly[i]; |
655 pos.setY (pos.y() + metrics.height()); |
655 pos.setY (pos.y() + metrics.height()); |
656 paint.drawText (pos, label); |
656 paint.drawText (pos, label); |
657 } |
657 } |