summaryrefslogtreecommitdiffstats
path: root/src/declarative
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2010-10-04 01:59:38 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2010-10-04 02:00:45 (GMT)
commit29ddbd6f3021bd69a7badedc9749850ec1c1dabf (patch)
tree48d14064c8c505970e79d555465548fc69b18dbd /src/declarative
parentd7c052a509191a0a5c632391ce318c5036900a18 (diff)
downloadQt-29ddbd6f3021bd69a7badedc9749850ec1c1dabf.zip
Qt-29ddbd6f3021bd69a7badedc9749850ec1c1dabf.tar.gz
Qt-29ddbd6f3021bd69a7badedc9749850ec1c1dabf.tar.bz2
Fix clipping behavior for non-cached text.
Diffstat (limited to 'src/declarative')
-rw-r--r--src/declarative/graphicsitems/qdeclarativetext.cpp2
-rw-r--r--src/declarative/graphicsitems/qdeclarativetext_p_p.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativetext.cpp b/src/declarative/graphicsitems/qdeclarativetext.cpp
index c2dd850..65f1564 100644
--- a/src/declarative/graphicsitems/qdeclarativetext.cpp
+++ b/src/declarative/graphicsitems/qdeclarativetext.cpp
@@ -1143,7 +1143,7 @@ void QDeclarativeText::paint(QPainter *p, const QStyleOptionGraphicsItem *, QWid
} else {
qreal y = boundingRect().y();
- bool needClip = !clip() && (d->cachedLayoutSize.width() > width() ||
+ bool needClip = clip() && (d->cachedLayoutSize.width() > width() ||
d->cachedLayoutSize.height() > height());
if (needClip) {
diff --git a/src/declarative/graphicsitems/qdeclarativetext_p_p.h b/src/declarative/graphicsitems/qdeclarativetext_p_p.h
index ba1ec78..db68558 100644
--- a/src/declarative/graphicsitems/qdeclarativetext_p_p.h
+++ b/src/declarative/graphicsitems/qdeclarativetext_p_p.h
@@ -66,7 +66,6 @@ QT_BEGIN_NAMESPACE
class QTextLayout;
class QTextDocumentWithImageResources;
-#define QML_NO_TEXT_CACHE
class QDeclarativeTextPrivate : public QDeclarativeItemPrivate
{
Q_DECLARE_PUBLIC(QDeclarativeText)