diff options
author | Eskil Abrahamsen Blomfeldt <eblomfel@trolltech.com> | 2009-08-17 13:29:02 (GMT) |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2010-01-14 12:55:45 (GMT) |
commit | 5290c50b240abbcd0477df1db1808d33b96ca856 (patch) | |
tree | f458300ef95d7c51f70d82dfec0b244faad5b14a /src/gui/painting/qtextureglyphcache_p.h | |
parent | 91e96d6c730aac4accef64e5eaab1b289939ef8e (diff) | |
download | Qt-5290c50b240abbcd0477df1db1808d33b96ca856.zip Qt-5290c50b240abbcd0477df1db1808d33b96ca856.tar.gz Qt-5290c50b240abbcd0477df1db1808d33b96ca856.tar.bz2 |
Support transformations in drawStaticText() and optimize for space
1. Support transformations on the painter in drawStaticText().
Transforming the painter will cause the text layout to be recalculated,
except for translations, which are handled by shifting the position of
the text items.
2. Make const length arrays of the internal data in QStaticTextItem in
order to minimize the memory consumption.
Diffstat (limited to 'src/gui/painting/qtextureglyphcache_p.h')
-rw-r--r-- | src/gui/painting/qtextureglyphcache_p.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/painting/qtextureglyphcache_p.h b/src/gui/painting/qtextureglyphcache_p.h index 2f7fc96..b8717b1 100644 --- a/src/gui/painting/qtextureglyphcache_p.h +++ b/src/gui/painting/qtextureglyphcache_p.h @@ -91,9 +91,8 @@ public: int baseLineY; }; - void populate(QFontEngine *fontEngine, - const QVarLengthArray<glyph_t> &glyphs, - const QVarLengthArray<QFixedPoint> &positions); + void populate(QFontEngine *fontEngine, int numGlyphs, const glyph_t *glyphs, + const QFixedPoint *positions); virtual void createTextureData(int width, int height) = 0; virtual void resizeTextureData(int width, int height) = 0; |