diff options
author | Andrew den Exter <andrew.den-exter@nokia.com> | 2012-02-01 13:54:58 +1000 |
---|---|---|
committer | Andrew den Exter <andrew.den-exter@nokia.com> | 2012-02-01 05:07:08 +0100 |
commit | 6878db3c0802470e9fd6a224b17d8b03228afbb8 (patch) | |
tree | d4647b95bd8274b69e6fb84210286330b2650b11 /src/declarative | |
parent | 5e970b84663f5398eb51d4575856d1a3c44df953 (diff) | |
download | qtquick1-6878db3c0802470e9fd6a224b17d8b03228afbb8.tar.gz |
Fix compile failure due to API change in QRegion.
Change-Id: I94929e93970a980285d4a05d856be669b2a3c28f
Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
Diffstat (limited to 'src/declarative')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativepainteditem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativepainteditem.cpp b/src/declarative/graphicsitems/qdeclarativepainteditem.cpp index ecf072dc..923cc97a 100644 --- a/src/declarative/graphicsitems/qdeclarativepainteditem.cpp +++ b/src/declarative/graphicsitems/qdeclarativepainteditem.cpp @@ -259,7 +259,7 @@ void QDeclarativePaintedItem::paint(QPainter *p, const QStyleOptionGraphicsItem QTransform xinv = x.inverted(); QRegion effectiveClip; QRegion sysClip = p->paintEngine()->systemClip(); - if (xinv.type() <= QTransform::TxScale && sysClip.numRects() < 5) { + if (xinv.type() <= QTransform::TxScale && sysClip.rectCount() < 5) { // simple transform, region gets no more complicated... effectiveClip = xinv.map(sysClip); } else { |