summaryrefslogtreecommitdiffstats
path: root/profile-widget/diveprofileitem.cpp
diff options
context:
space:
mode:
authorGravatar Rick Walsh <rickmwalsh@gmail.com>2016-09-13 16:37:09 +1000
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-09-17 13:42:33 -0700
commit1cae1255d7ea882f062fd857b2097aed859d0401 (patch)
tree62f036d548ad157dd40be4e53067f519effbd00c /profile-widget/diveprofileitem.cpp
parentddc7f3dc98c8ed2226fc57b8876f2d4d43a14294 (diff)
downloadsubsurface-1cae1255d7ea882f062fd857b2097aed859d0401.tar.gz
Allow heat map to zoom
Setting the pen to non-cosmetic means the painted width scales when zoomed Signed-off-by: Rick Walsh <rickmwalsh@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile-widget/diveprofileitem.cpp')
-rw-r--r--profile-widget/diveprofileitem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/profile-widget/diveprofileitem.cpp b/profile-widget/diveprofileitem.cpp
index 1543b3617..62df3b7a2 100644
--- a/profile-widget/diveprofileitem.cpp
+++ b/profile-widget/diveprofileitem.cpp
@@ -394,7 +394,7 @@ void DivePercentageItem::paint(QPainter *painter, const QStyleOptionGraphicsItem
painter->save();
QColor color;
QPen mypen;
- mypen.setCosmetic(true);
+ mypen.setCosmetic(false);
mypen.setWidth(5);
QPolygonF poly = polygon();
for (int i = 0, modelDataCount = dataModel->rowCount(); i < modelDataCount; i++) {