mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-01-31 09:05:14 +01:00
Removed path item caching (made obsolete by OpenGL rendering)
This commit is contained in:
parent
71310116e3
commit
18c501b610
@ -11,11 +11,6 @@ void PathItem::updateShape()
|
|||||||
QPainterPathStroker s;
|
QPainterPathStroker s;
|
||||||
s.setWidth((_width + 1) * 1.0/scale());
|
s.setWidth((_width + 1) * 1.0/scale());
|
||||||
_shape = s.createStroke(_path);
|
_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)
|
PathItem::PathItem(QGraphicsItem *parent) : QGraphicsObject(parent)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user