diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-10-08 04:03:37 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-10-08 04:03:37 (GMT) |
commit | a139b9aff0d658758cc7a8063377824178a8ea92 (patch) | |
tree | a71e17e1fd9a3c807ce3b505018b183a38ea4a5d /src | |
parent | c4cbd04275906b1bfa1a55147a0a4bb626033a20 (diff) | |
download | Qt-a139b9aff0d658758cc7a8063377824178a8ea92.zip Qt-a139b9aff0d658758cc7a8063377824178a8ea92.tar.gz Qt-a139b9aff0d658758cc7a8063377824178a8ea92.tar.bz2 |
Disable Text {} image caching by default
Task-number: QTBUG-14050
Diffstat (limited to 'src')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativetext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativetext.cpp b/src/declarative/graphicsitems/qdeclarativetext.cpp index 65f1564..54cb062 100644 --- a/src/declarative/graphicsitems/qdeclarativetext.cpp +++ b/src/declarative/graphicsitems/qdeclarativetext.cpp @@ -82,7 +82,7 @@ private: static QSet<QUrl> errors; }; -DEFINE_BOOL_CONFIG_OPTION(disableImageCache, QML_DISABLE_IMAGE_CACHE); +DEFINE_BOOL_CONFIG_OPTION(enableImageCache, QML_ENABLE_TEXT_IMAGE_CACHE); QDeclarativeTextPrivate::QDeclarativeTextPrivate() : color((QRgb)0), style(QDeclarativeText::Normal), @@ -90,7 +90,7 @@ QDeclarativeTextPrivate::QDeclarativeTextPrivate() imgDirty(true), dirty(true), richText(false), singleline(false), cache(true), internalWidthUpdate(false), doc(0), format(QDeclarativeText::AutoText), wrapMode(QDeclarativeText::NoWrap) { - cache = !disableImageCache(); + cache = enableImageCache(); QGraphicsItemPrivate::acceptedMouseButtons = Qt::LeftButton; QGraphicsItemPrivate::flags = QGraphicsItemPrivate::flags & ~QGraphicsItem::ItemHasNoContents; } |