Lubomir I. Ivanov b68e86a141 Profile: add white outline to all text
To draw the white outline around profile text we trace a text path
using QPainterPath::addText() and then create a couple of
QGraphicsPathItem objects. One of the objects is outlined using
QPainterPathStroker and is placed at the bottom of a QGraphicsItemGroup
with a white brush. The other object holds the standard colored text
and is placed on top.

Notes:
- possibly quite expensive on older machines
- ProfileGraphicsView::plot_text() now returns a QGraphicsItemGroup
- QGraphicsSimpleTextItem uses a top-left baseline anchor
while QPainterPath::addText() uses a bottom-left baseline
which is a bit mysterious, requires the -3 offset for a match
and is possibly non-portable across fonts and sizes.

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-07-02 15:51:10 -07:00
..
2013-06-24 07:44:28 -07:00
2013-06-24 07:44:28 -07:00
2013-07-02 13:58:03 -07:00
2013-06-19 10:20:56 -07:00
2013-05-17 22:27:50 -07:00
2013-06-27 20:57:13 +08:00
2013-06-18 13:31:12 -07:00
2013-06-17 13:54:50 -03:00
2013-06-19 10:20:56 -07:00