summaryrefslogtreecommitdiffstats
path: root/qt-ui/profilegraphics.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-07-02 15:50:40 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-07-02 15:50:40 -0700
commit9d9d516c2623b76fbd17b8395910dbc67c0174c9 (patch)
tree418ff68be791bcd63cf8027a78ede48a3e600b6e /qt-ui/profilegraphics.cpp
parent6b08a6d42877f80912aebf74558a6a37c6fbabc4 (diff)
downloadsubsurface-9d9d516c2623b76fbd17b8395910dbc67c0174c9.tar.gz
Revert "Profile: add white outline to all text"
This reverts commit 44c33742c26dcf9387b5c837c161e33ddc5eb060. I mistakenly applied the wrong version of the patch. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profilegraphics.cpp')
-rw-r--r--qt-ui/profilegraphics.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/qt-ui/profilegraphics.cpp b/qt-ui/profilegraphics.cpp
index 7adabc6d3..29d2a72af 100644
--- a/qt-ui/profilegraphics.cpp
+++ b/qt-ui/profilegraphics.cpp
@@ -1063,20 +1063,16 @@ void ProfileGraphicsView::plot_depth_profile()
QGraphicsSimpleTextItem *ProfileGraphicsView::plot_text(text_render_options_t *tro,const QPointF& pos, const QString& text, QGraphicsItem *parent)
{
- QFont fnt(font());
- fnt.setBold(true);
- QFontMetrics fm(fnt);
+ QFontMetrics fm(font());
double dx = tro->hpos * (fm.width(text));
double dy = tro->vpos * (fm.height());
QGraphicsSimpleTextItem *item = new QGraphicsSimpleTextItem(text, parent);
- item->setFont(fnt);
QPointF point(SCALEGC(pos.x(), pos.y())); // This is neded because of the SCALE macro.
item->setPos(point.x() + dx, point.y() + dy);
item->setBrush(QBrush(profile_color[tro->color].first()));
- item->setPen(QPen(profile_color[TEXT_BACKGROUND].first()));
item->setFlag(QGraphicsItem::ItemIgnoresTransformations);
if (!parent)