diff options
author | Rick Walsh <rickmwalsh@gmail.com> | 2016-09-13 16:37:09 +1000 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-09-17 13:42:33 -0700 |
commit | 1cae1255d7ea882f062fd857b2097aed859d0401 (patch) | |
tree | 62f036d548ad157dd40be4e53067f519effbd00c /profile-widget | |
parent | ddc7f3dc98c8ed2226fc57b8876f2d4d43a14294 (diff) | |
download | subsurface-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')
-rw-r--r-- | profile-widget/diveprofileitem.cpp | 2 |
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++) { |