diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2013-10-15 12:54:18 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-10-15 04:24:02 -0700 |
commit | 005f8ecf839b743414e3cb2433aec9de5a3b82e1 (patch) | |
tree | c2578965bd337b4c47ab9151b483b1a0ef8a8931 /qt-ui | |
parent | 88b1e09dee7b78f1bd4fba40e75b619e6d8067df (diff) | |
download | subsurface-005f8ecf839b743414e3cb2433aec9de5a3b82e1.tar.gz |
profilegraphics.cpp: Use text sizes in plot_text()
Make the active font (fnt) use the 'size' member of the received
text_render_options_t. This allows changing the size of
certain text elements.
For the moment most text elements are set to 12px.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/profilegraphics.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/profilegraphics.cpp b/qt-ui/profilegraphics.cpp index 3f871970a..8f9c8d00c 100644 --- a/qt-ui/profilegraphics.cpp +++ b/qt-ui/profilegraphics.cpp @@ -1179,7 +1179,7 @@ QGraphicsItemGroup *ProfileGraphicsView::plot_text(text_render_options_t *tro,co QFontMetrics fm(fnt); if (printMode) - fnt.setPixelSize(10); + fnt.setPixelSize(tro->size); QPointF point(SCALEGC(pos.x(), pos.y())); // This is neded because of the SCALE macro. double dx = tro->hpos * (fm.width(text)); |