src/gldraw.cc

changeset 580
341580df1e61
parent 578
a86ae85a277c
child 581
c57ddcaf1b58
equal deleted inserted replaced
579:4e140de264d2 580:341580df1e61
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 }

mercurial