1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-06 14:53:21 +02:00

Removed path item caching (made obsolete by OpenGL rendering)

This commit is contained in:
Martin Tůma 2016-12-06 21:28:45 +01:00
parent 71310116e3
commit 18c501b610

View File

@ -11,11 +11,6 @@ void PathItem::updateShape()
QPainterPathStroker s;
s.setWidth((_width + 1) * 1.0/scale());
_shape = s.createStroke(_path);
if (qMax(boundingRect().width(), boundingRect().height()) * scale() <= 768)
setCacheMode(QGraphicsItem::DeviceCoordinateCache);
else
setCacheMode(QGraphicsItem::NoCache);
}
PathItem::PathItem(QGraphicsItem *parent) : QGraphicsObject(parent)