diff options
author | Gunnar Sletta <gunnar@trolltech.com> | 2009-11-09 09:41:30 (GMT) |
---|---|---|
committer | Gunnar Sletta <gunnar@trolltech.com> | 2009-11-10 11:20:19 (GMT) |
commit | 82e78e6797a99ffba279247731d43915d69890a4 (patch) | |
tree | 3260e4368d5eef7d38fff3b789cb0efc9fa1bb8a /src | |
parent | c05fc777cac9a585567c83508b0e39cc3f86e7f6 (diff) | |
download | Qt-82e78e6797a99ffba279247731d43915d69890a4.zip Qt-82e78e6797a99ffba279247731d43915d69890a4.tar.gz Qt-82e78e6797a99ffba279247731d43915d69890a4.tar.bz2 |
Fixed QPixmapDropShadowFilter and updated its testcase
Reivewed-by: Samuel
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/image/qpixmapfilter.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gui/image/qpixmapfilter.cpp b/src/gui/image/qpixmapfilter.cpp index de8f4e0..650aeaa 100644 --- a/src/gui/image/qpixmapfilter.cpp +++ b/src/gui/image/qpixmapfilter.cpp @@ -1064,9 +1064,7 @@ void QPixmapDropShadowFilter::setOffset(const QPointF &offset) QRectF QPixmapDropShadowFilter::boundingRectFor(const QRectF &rect) const { Q_D(const QPixmapDropShadowFilter); - qreal delta = d->radius + 1; - return rect.adjusted(-2, -2, 2, 2).united( - rect.translated(d->offset).adjusted(-delta, -delta, delta, delta)); + return rect.united(rect.translated(d->offset).adjusted(-d->radius, -d->radius, d->radius, d->radius)); } /*! |