diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-10-01 00:36:34 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-10-01 00:39:22 (GMT) |
commit | 394651a222b9b200b793dbf86fadc52b5a546915 (patch) | |
tree | bb91a38e1a3785ab969276afafc1c83dd3004b2e /src/declarative/graphicsitems/graphicsitems.pri | |
parent | 1e2958e7a12de7cba30b02657c02320945bb1e3d (diff) | |
download | Qt-394651a222b9b200b793dbf86fadc52b5a546915.zip Qt-394651a222b9b200b793dbf86fadc52b5a546915.tar.gz Qt-394651a222b9b200b793dbf86fadc52b5a546915.tar.bz2 |
Apply the QStaticText text-caching strategy for QML
QML cannot use QStaticText directly as it doesn't support caching a
QTextLayout. QDeclarativeTextLayout is basically a copy of QStaticText
that adds this support.
Currently this feature is disabled by default (enable with
QML_DISABLE_IMAGE_CACHE=1) while we double check the perf consequences
of this change.
Task-number: QTBUG-14050
Diffstat (limited to 'src/declarative/graphicsitems/graphicsitems.pri')
-rw-r--r-- | src/declarative/graphicsitems/graphicsitems.pri | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/declarative/graphicsitems/graphicsitems.pri b/src/declarative/graphicsitems/graphicsitems.pri index d420595..ffdeb29 100644 --- a/src/declarative/graphicsitems/graphicsitems.pri +++ b/src/declarative/graphicsitems/graphicsitems.pri @@ -49,7 +49,8 @@ HEADERS += \ $$PWD/qdeclarativelistview_p.h \ $$PWD/qdeclarativelayoutitem_p.h \ $$PWD/qdeclarativeitemchangelistener_p.h \ - $$PWD/qdeclarativegraphicswidget_p.h + $$PWD/qdeclarativegraphicswidget_p.h \ + $$PWD/qdeclarativetextlayout_p.h SOURCES += \ $$PWD/qdeclarativeitemsmodule.cpp \ @@ -81,4 +82,6 @@ SOURCES += \ $$PWD/qdeclarativevisualitemmodel.cpp \ $$PWD/qdeclarativelistview.cpp \ $$PWD/qdeclarativelayoutitem.cpp \ - $$PWD/qdeclarativegraphicswidget.cpp + $$PWD/qdeclarativegraphicswidget.cpp \ + $$PWD/qdeclarativetextlayout.cpp + |