From 1cae1255d7ea882f062fd857b2097aed859d0401 Mon Sep 17 00:00:00 2001 From: Rick Walsh Date: Tue, 13 Sep 2016 16:37:09 +1000 Subject: Allow heat map to zoom Setting the pen to non-cosmetic means the painted width scales when zoomed Signed-off-by: Rick Walsh Signed-off-by: Dirk Hohndel --- profile-widget/diveprofileitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'profile-widget') 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++) { -- cgit v1.2.3-70-g09d2