diff options
author | Andreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com> | 2009-09-22 15:15:42 (GMT) |
---|---|---|
committer | Andreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com> | 2009-09-22 15:28:41 (GMT) |
commit | dce347aba6f6b926f62e16ab9763270601fc3bd1 (patch) | |
tree | 723d5667b2fcb517a061b663e51607795896a38e | |
parent | dde7aa88765d2d14b72a80b0f7e046ea6be5f94e (diff) | |
download | Qt-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.cpp | 2 |
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) |