aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-08-05 15:47:02 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-08-05 15:47:02 -0700
commitebf1b8f62443cb83e97eb2bfce3187eb33f237c2 (patch)
treeeab9e861441bb2780c32811a46532a909da82044 /qt-ui
parentd960ac40396b388f41d847d150114346689790db (diff)
downloadsubsurface-ebf1b8f62443cb83e97eb2bfce3187eb33f237c2.tar.gz
Make the cross hair less obnoxious on Mac
While on Linux it was drawn as fine 1px line, on Mac it came out rather fat and obnoxious by default. With this it's always set to a very thin line. This still needs more work, but let's leave it where it is for Beta 5. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/profile/profilewidget2.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp
index b19ca81e1..78e5eb277 100644
--- a/qt-ui/profile/profilewidget2.cpp
+++ b/qt-ui/profile/profilewidget2.cpp
@@ -162,8 +162,10 @@ void ProfileWidget2::addItemsToScene()
scene()->addItem(rulerItem->destNode());
scene()->addItem(mouseFollowerHorizontal);
scene()->addItem(mouseFollowerVertical);
- mouseFollowerHorizontal->setPen(QPen(QColor(Qt::red).lighter()));
- mouseFollowerVertical->setPen(QPen(QColor(Qt::red).lighter()));
+ QPen pen(QColor(Qt::red).lighter());
+ pen.setWidth(0);
+ mouseFollowerHorizontal->setPen(pen);
+ mouseFollowerVertical->setPen(pen);
Q_FOREACH (DiveCalculatedTissue *tissue, allTissues) {
scene()->addItem(tissue);
}