summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com>2009-09-22 15:15:42 (GMT)
committerAndreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com>2009-09-22 15:28:41 (GMT)
commitdce347aba6f6b926f62e16ab9763270601fc3bd1 (patch)
tree723d5667b2fcb517a061b663e51607795896a38e
parentdde7aa88765d2d14b72a80b0f7e046ea6be5f94e (diff)
downloadQt-dce347aba6f6b926f62e16ab9763270601fc3bd1.zip
Qt-dce347aba6f6b926f62e16ab9763270601fc3bd1.tar.gz
Qt-dce347aba6f6b926f62e16ab9763270601fc3bd1.tar.bz2
Fix clipping bug in QFxText when text is larger than item's rect.
Apply an intersect clip (don't replace the clip). Reviewed-by: Henrik Hartz
-rw-r--r--src/declarative/fx/qfxtext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/fx/qfxtext.cpp b/src/declarative/fx/qfxtext.cpp
index 7c7b3b0..c26ed2c 100644
--- a/src/declarative/fx/qfxtext.cpp
+++ b/src/declarative/fx/qfxtext.cpp
@@ -750,7 +750,7 @@ void QFxText::paint(QPainter *p, const QStyleOptionGraphicsItem *, QWidget *)
if (needClip) {
p->save();
- p->setClipRect(boundingRect());
+ p->setClipRect(boundingRect(), Qt::IntersectClip);
}
p->drawPixmap(x, y, d->imgCache);
if (needClip)