diff options
author | Alexis Menard <alexis.menard@nokia.com> | 2009-05-29 15:18:38 (GMT) |
---|---|---|
committer | Alexis Menard <alexis.menard@nokia.com> | 2009-05-29 15:18:38 (GMT) |
commit | 53187fabdbfb8a513e735fdd034e1a9fbbccc9cd (patch) | |
tree | 4d262607a95c75f73b6d06574c2af6ec9f69568b /src/gui/graphicsview/qgraphicsscene.cpp | |
parent | 32155ed07a6f8b8c831db6ba219395b4825fa9fd (diff) | |
download | Qt-53187fabdbfb8a513e735fdd034e1a9fbbccc9cd.zip Qt-53187fabdbfb8a513e735fdd034e1a9fbbccc9cd.tar.gz Qt-53187fabdbfb8a513e735fdd034e1a9fbbccc9cd.tar.bz2 |
Add an API to know the indexed rect of the index.
Usefull for the POV of the scene and let the BSP update its internal
structure before the next event loop reentrancy.
Diffstat (limited to 'src/gui/graphicsview/qgraphicsscene.cpp')
-rw-r--r-- | src/gui/graphicsview/qgraphicsscene.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/graphicsview/qgraphicsscene.cpp b/src/gui/graphicsview/qgraphicsscene.cpp index 9b6d40b..479a548 100644 --- a/src/gui/graphicsview/qgraphicsscene.cpp +++ b/src/gui/graphicsview/qgraphicsscene.cpp @@ -1422,7 +1422,7 @@ QGraphicsScene::~QGraphicsScene() QRectF QGraphicsScene::sceneRect() const { Q_D(const QGraphicsScene); - return d->hasSceneRect ? d->sceneRect : d->growingItemsBoundingRect; + return d->index->indexedRect(); } void QGraphicsScene::setSceneRect(const QRectF &rect) { |