summaryrefslogtreecommitdiffstats
path: root/src/gui/text/text.pri
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eblomfel@trolltech.com>2009-05-18 16:07:31 +0200
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2010-01-14 13:45:16 +0100
commit5d0f93a3d6d3d99d86d181ee3cc559a6782be4ee (patch)
tree3f8a7a1584c6dd40fb726f47cd6bd32f87967311 /src/gui/text/text.pri
parentb6b3f7b60ac3a59bc083e38e78b087b20f003bb6 (diff)
Introduce QStaticText API
Much of the time in drawText() is used on text layouting, which is wasted time when the text is not updated every frame. QStaticText is meant to cache the relevant parts of this work. It currently uses a copy-paste of the layout code in QPainter::drawText() and 99% of the time in QPainter::drawStaticText() is spent in drawTextItem(). We can use QTextLayout here instead without losing much.
Diffstat (limited to 'src/gui/text/text.pri')
-rw-r--r--src/gui/text/text.pri7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/text/text.pri b/src/gui/text/text.pri
index b7615a43e8..026e6c6f45 100644
--- a/src/gui/text/text.pri
+++ b/src/gui/text/text.pri
@@ -37,7 +37,9 @@ HEADERS += \
text/qtexttable_p.h \
text/qzipreader_p.h \
text/qzipwriter_p.h \
- text/qtextodfwriter_p.h
+ text/qtextodfwriter_p.h \
+ text/qstatictext.h \
+ text/qstatictext_p.h
SOURCES += \
text/qfont.cpp \
@@ -66,7 +68,8 @@ SOURCES += \
text/qsyntaxhighlighter.cpp \
text/qcssparser.cpp \
text/qzip.cpp \
- text/qtextodfwriter.cpp
+ text/qtextodfwriter.cpp \
+ text/qstatictext.cpp
win32 {
SOURCES += \