From 30e198cf46a4d8bccb9aeca48c91fcaeec374f9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Wed, 7 Dec 2016 00:44:32 +0100 Subject: [PATCH] Cache the graph grid --- src/griditem.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/griditem.cpp b/src/griditem.cpp index e0a71c2c..2f2b6591 100644 --- a/src/griditem.cpp +++ b/src/griditem.cpp @@ -6,7 +6,9 @@ GridItem::GridItem(QGraphicsItem *parent) : QGraphicsItem(parent) { - +#ifndef Q_OS_MAC + setCacheMode(QGraphicsItem::DeviceCoordinateCache); +#endif // Q_OS_MAC } void GridItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,