summaryrefslogtreecommitdiffstats
path: root/src/gui/text/text.pri
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eblomfel@trolltech.com>2009-05-18 14:07:31 (GMT)
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2010-01-14 12:45:16 (GMT)
commit5d0f93a3d6d3d99d86d181ee3cc559a6782be4ee (patch)
tree3f8a7a1584c6dd40fb726f47cd6bd32f87967311 /src/gui/text/text.pri
parentb6b3f7b60ac3a59bc083e38e78b087b20f003bb6 (diff)
downloadQt-5d0f93a3d6d3d99d86d181ee3cc559a6782be4ee.zip
Qt-5d0f93a3d6d3d99d86d181ee3cc559a6782be4ee.tar.gz
Qt-5d0f93a3d6d3d99d86d181ee3cc559a6782be4ee.tar.bz2
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 b7615a4..026e6c6 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 += \