summaryrefslogtreecommitdiffstats
path: root/src/svg/qsvggraphics_p.h
diff options
context:
space:
mode:
authorAriya Hidayat <ariya.hidayat@nokia.com>2009-08-31 09:26:34 (GMT)
committerAriya Hidayat <ariya.hidayat@nokia.com>2009-08-31 10:01:31 (GMT)
commitf2dbfdccfab0648cf353ef56ced269468984840c (patch)
tree85751c3a8294f22f56eac729c05511ebb22b39f4 /src/svg/qsvggraphics_p.h
parent266f578ebe20b9885421effec0a91f9c025fd11e (diff)
downloadQt-f2dbfdccfab0648cf353ef56ced269468984840c.zip
Qt-f2dbfdccfab0648cf353ef56ced269468984840c.tar.gz
Qt-f2dbfdccfab0648cf353ef56ced269468984840c.tar.bz2
Find the cached bounds only when necessary.
We delay computing the bounding rect as late as possible. This speeds-up QSvgPath construction. Reviewed-by: Kim
Diffstat (limited to 'src/svg/qsvggraphics_p.h')
-rw-r--r--src/svg/qsvggraphics_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/svg/qsvggraphics_p.h b/src/svg/qsvggraphics_p.h
index 02c312b..246a8c9 100644
--- a/src/svg/qsvggraphics_p.h
+++ b/src/svg/qsvggraphics_p.h
@@ -145,7 +145,7 @@ public:
}
private:
QPainterPath m_path;
- QRectF m_cachedBounds;
+ mutable QRectF m_cachedBounds;
};
class QSvgPolygon : public QSvgNode