+ const float h_centre = (r.left() + r.right()) / 2;
+ const QPointF points[] = {
+ r.topRight(),
+ QPointF(r.right(), r.bottom()),
+ QPointF(h_centre + ArrowSize, r.bottom()),
+ QPointF(h_centre, rect.bottom()),
+ QPointF(h_centre - ArrowSize, r.bottom()),
+ QPointF(r.left(), r.bottom()),
+ r.topLeft()
+ };
+
+ const QPointF highlight_points[] = {
+ QPointF(r.right() - 1, r.top() + 1),
+ QPointF(r.right() - 1, r.bottom() - 1),
+ QPointF(h_centre + ArrowSize - 1, r.bottom() - 1),
+ QPointF(h_centre, rect.bottom() - 1),
+ QPointF(h_centre - ArrowSize + 1, r.bottom() - 1),
+ QPointF(r.left() + 1, r.bottom() - 1),
+ QPointF(r.left() + 1, r.top() + 1),
+ };
+
+ char text[16];
+ format_text(text);
+
+ p.setPen(Qt::transparent);
+ p.setBrush(FillColour);
+ p.drawPolygon(points, countof(points));