summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/diveprofileitem.cpp
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2014-03-19 18:24:42 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-03-19 09:37:12 -0700
commit71f2fd91b5a75a3c98020145e419ae7a1cb48cfe (patch)
treefa13bf83ed2176231b5da1e4472b8442a85b054f /qt-ui/profile/diveprofileitem.cpp
parentfdf6f3cd4e78bac6f9f674cb709e94a5b8f025fc (diff)
downloadsubsurface-71f2fd91b5a75a3c98020145e419ae7a1cb48cfe.tar.gz
Profile2: fix widths on some lines for Qt5
Qt5 uses different widths for some of the poly. lines in the profile. Setting an explicit value fixes that. Tested-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/diveprofileitem.cpp')
-rw-r--r--qt-ui/profile/diveprofileitem.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/qt-ui/profile/diveprofileitem.cpp b/qt-ui/profile/diveprofileitem.cpp
index f42bbef50..2ffc7ec02 100644
--- a/qt-ui/profile/diveprofileitem.cpp
+++ b/qt-ui/profile/diveprofileitem.cpp
@@ -668,11 +668,12 @@ void PartialPressureGasItem::modelDataChanged(const QModelIndex &topLeft, const
void PartialPressureGasItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
{
- painter->setPen(normalColor);
+ const qreal pWidth = 0.0;
+ painter->setPen(QPen(normalColor, pWidth));
painter->drawPolyline(polygon());
QPolygonF poly;
- painter->setPen(alertColor);
+ painter->setPen(QPen(alertColor, pWidth));
Q_FOREACH(const QPolygonF & poly, alertPolygons)
painter->drawPolyline(poly);