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>
This commit is contained in:
Rick Walsh 2016-09-13 16:37:09 +10:00 committed by Dirk Hohndel
parent ddc7f3dc98
commit 1cae1255d7

View file

@ -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++) {