diff options
author | Jiang Jiang <jiang.jiang@nokia.com> | 2011-09-09 12:31:39 (GMT) |
---|---|---|
committer | Jiang Jiang <jiang.jiang@nokia.com> | 2011-09-16 11:01:24 (GMT) |
commit | 8935a84e18804c7ff4b7336e3cfdf1cd558eaf1c (patch) | |
tree | ebed5bf2916a99a976c5f42c9de41cc5d435fa7c /src/gui/text/qtextengine_p.h | |
parent | 9463ba63bc7e41a1d6aa320aced392843e31b160 (diff) | |
download | Qt-8935a84e18804c7ff4b7336e3cfdf1cd558eaf1c.zip Qt-8935a84e18804c7ff4b7336e3cfdf1cd558eaf1c.tar.gz Qt-8935a84e18804c7ff4b7336e3cfdf1cd558eaf1c.tar.bz2 |
Release font engine refcount when done using it in QTextEngine
5f2b6dd2a50275bc05ae5d7e9dd8902d6d49d9df increased refcounts for
font engines in QTextEngine cache, we need to decrease them when
the QTextEngine is deallocated.
Task-number: QTBUG-21222
Reviewed-by: Eskil
Diffstat (limited to 'src/gui/text/qtextengine_p.h')
-rw-r--r-- | src/gui/text/qtextengine_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/text/qtextengine_p.h b/src/gui/text/qtextengine_p.h index 0a86886..9362022 100644 --- a/src/gui/text/qtextengine_p.h +++ b/src/gui/text/qtextengine_p.h @@ -629,6 +629,7 @@ public: int lineNumberForTextPosition(int pos); int positionAfterVisualMovement(int oldPos, QTextCursor::MoveOperation op); void insertionPointsForLine(int lineNum, QVector<int> &insertionPoints); + void resetFontEngineCache(); private: void setBoundary(int strPos) const; |