diff options
author | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-06-26 13:54:04 (GMT) |
---|---|---|
committer | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-06-26 14:56:38 (GMT) |
commit | 7541247a025bf112716a752bc4d114303f2a77f8 (patch) | |
tree | d170ff340b8fe60f320eaab0f766784f0287912a /src/gui/graphicsview/qgraphicsscenebsptreeindex.cpp | |
parent | eab949e2ec8f820a54826c1a837c8c8de07814ab (diff) | |
download | Qt-7541247a025bf112716a752bc4d114303f2a77f8.zip Qt-7541247a025bf112716a752bc4d114303f2a77f8.tar.gz Qt-7541247a025bf112716a752bc4d114303f2a77f8.tar.bz2 |
Proper handling of scene rect in QGraphicsScene(Index).
Reviewed-by: Andreas
Diffstat (limited to 'src/gui/graphicsview/qgraphicsscenebsptreeindex.cpp')
-rw-r--r-- | src/gui/graphicsview/qgraphicsscenebsptreeindex.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/graphicsview/qgraphicsscenebsptreeindex.cpp b/src/gui/graphicsview/qgraphicsscenebsptreeindex.cpp index f6994f9..3efc742 100644 --- a/src/gui/graphicsview/qgraphicsscenebsptreeindex.cpp +++ b/src/gui/graphicsview/qgraphicsscenebsptreeindex.cpp @@ -655,10 +655,10 @@ void QGraphicsSceneBspTreeIndex::setBspTreeDepth(int depth) This method react to the \a rect change of the scene and reset the BSP tree index. */ -void QGraphicsSceneBspTreeIndex::sceneRectChanged() +void QGraphicsSceneBspTreeIndex::updateSceneRect(const QRectF &rect) { Q_D(QGraphicsSceneBspTreeIndex); - d->sceneRect = d->scene->sceneRect(); + d->sceneRect = rect; d->resetIndex(); } |