summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qfontengineglyphcache_p.h
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2010-07-12 07:54:40 (GMT)
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2010-07-12 08:17:03 (GMT)
commitd193933b31088f83358a657f0399c6eeae2467e2 (patch)
treef22152c77331801afcd9c8989175c2f02485cc42 /src/gui/text/qfontengineglyphcache_p.h
parentf8e2daddc56afa9e601c14a3e25be5316c2a6d69 (diff)
downloadQt-d193933b31088f83358a657f0399c6eeae2467e2.zip
Qt-d193933b31088f83358a657f0399c6eeae2467e2.tar.gz
Qt-d193933b31088f83358a657f0399c6eeae2467e2.tar.bz2
Make QFontEngineGlyphCache explicitly shared
QFontEngine will delete its glyph cache (and if it's a GL engine, its texture) when the font engine dies. The font engine can die when the QFontCache decides to clean it up, e.g. based on the trigger of a timer. To make it possible to use the glyph cache elsewhere, without interference by the font cache, it has been made explicitly shared. Reviewed-by: Kim
Diffstat (limited to 'src/gui/text/qfontengineglyphcache_p.h')
-rw-r--r--src/gui/text/qfontengineglyphcache_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qfontengineglyphcache_p.h b/src/gui/text/qfontengineglyphcache_p.h
index 7b82b46..eba16f7 100644
--- a/src/gui/text/qfontengineglyphcache_p.h
+++ b/src/gui/text/qfontengineglyphcache_p.h
@@ -72,7 +72,7 @@
QT_BEGIN_NAMESPACE
-class QFontEngineGlyphCache
+class QFontEngineGlyphCache: public QSharedData
{
public:
enum Type {