1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34:47 +01:00

Cache the graph grid

This commit is contained in:
Martin Tůma 2016-12-07 00:44:32 +01:00
parent 0f2deca4fa
commit 30e198cf46

View File

@ -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,