From dce347aba6f6b926f62e16ab9763270601fc3bd1 Mon Sep 17 00:00:00 2001 From: Andreas Aardal Hanssen Date: Tue, 22 Sep 2009 17:15:42 +0200 Subject: 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 --- src/declarative/fx/qfxtext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v0.12