Profile: use a 10px font when printing profile text

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Lubomir I. Ivanov 2013-10-03 17:50:39 +03:00 committed by Dirk Hohndel
parent 50e74f4565
commit 374f3d0de6

View file

@ -1196,6 +1196,9 @@ QGraphicsItemGroup *ProfileGraphicsView::plot_text(text_render_options_t *tro,co
QFont fnt(font());
QFontMetrics fm(fnt);
if (printMode)
fnt.setPixelSize(10);
QPointF point(SCALEGC(pos.x(), pos.y())); // This is neded because of the SCALE macro.
double dx = tro->hpos * (fm.width(text));
double dy = tro->vpos * (fm.height());