summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2009-06-12 11:27:57 (GMT)
committerBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2009-06-12 11:45:20 (GMT)
commit8134541fc3229177ec7545fa0d3ea49eadc8f00c (patch)
treeade0cee9514adb21579f73f755095b56e477e806 /examples
parentd86ec1c4bec373090d85835f1bec44b025fa2fbc (diff)
downloadQt-8134541fc3229177ec7545fa0d3ea49eadc8f00c.zip
Qt-8134541fc3229177ec7545fa0d3ea49eadc8f00c.tar.gz
Qt-8134541fc3229177ec7545fa0d3ea49eadc8f00c.tar.bz2
QGraphicsItems are repainted when outside the view's exposed region.
The problem was that we used QRect::isEmpty() on the item's bounding rect intersected with the exposed region's bounding rect as a criteria for whether the item should be drawn or not. This does not work as expected with partial updates, where the boundingRect() of the exposed region easily can cover the entire viewport area. The item should *only* be drawn if its bounding rect intersects with the exposed region (and not the exposed region's bounding rect). Auto-test included.
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions