diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2009-11-05 03:46:28 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-11-05 03:46:28 (GMT) |
commit | 135a035362939b1c80d504e641f7dcb20f33a17b (patch) | |
tree | 169217ce34ba93ae225357796060bf3915524161 /src/gui/graphicsview | |
parent | 8fb2fde2e2474ae2175acdff15e559ed38bb2c38 (diff) | |
download | Qt-135a035362939b1c80d504e641f7dcb20f33a17b.zip Qt-135a035362939b1c80d504e641f7dcb20f33a17b.tar.gz Qt-135a035362939b1c80d504e641f7dcb20f33a17b.tar.bz2 |
Remove "to" limit on minor version.
QML_DEFINE_TYPE etc. now define just the initial support version, with
support in all future versions being thus implied.
QTBUG-5421
Diffstat (limited to 'src/gui/graphicsview')
-rw-r--r-- | src/gui/graphicsview/qgraphicsview.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/graphicsview/qgraphicsview.cpp b/src/gui/graphicsview/qgraphicsview.cpp index f72aa8a..9856b1a 100644 --- a/src/gui/graphicsview/qgraphicsview.cpp +++ b/src/gui/graphicsview/qgraphicsview.cpp @@ -3251,10 +3251,13 @@ void QGraphicsView::paintEvent(QPaintEvent *event) // Determine the exposed region d->exposedRegion = event->region(); + if (d->exposedRegion.isEmpty()) + d->exposedRegion = viewport()->rect(); QRectF exposedSceneRect = mapToScene(d->exposedRegion.boundingRect()).boundingRect(); // Set up the painter QPainter painter(viewport()); + painter.setClipRect(exposedSceneRect, Qt::IntersectClip); #ifndef QT_NO_RUBBERBAND if (d->rubberBanding && !d->rubberBandRect.isEmpty()) painter.save(); |