summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicssceneindex_p.h
diff options
context:
space:
mode:
authorBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2009-06-26 13:54:04 (GMT)
committerBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2009-06-26 14:56:38 (GMT)
commit7541247a025bf112716a752bc4d114303f2a77f8 (patch)
treed170ff340b8fe60f320eaab0f766784f0287912a /src/gui/graphicsview/qgraphicssceneindex_p.h
parenteab949e2ec8f820a54826c1a837c8c8de07814ab (diff)
downloadQt-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/qgraphicssceneindex_p.h')
-rw-r--r--src/gui/graphicsview/qgraphicssceneindex_p.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/graphicsview/qgraphicssceneindex_p.h b/src/gui/graphicsview/qgraphicssceneindex_p.h
index 60e9032..dc6a740 100644
--- a/src/gui/graphicsview/qgraphicssceneindex_p.h
+++ b/src/gui/graphicsview/qgraphicssceneindex_p.h
@@ -101,6 +101,9 @@ public:
virtual QList<QGraphicsItem *> estimateItems(const QRectF &rect,
Qt::SortOrder order, const QTransform &deviceTransform) const = 0;
+protected Q_SLOTS:
+ virtual void updateSceneRect(const QRectF &rect);
+
protected:
virtual void clear();
virtual void addItem(QGraphicsItem *item) = 0;
@@ -109,7 +112,6 @@ protected:
virtual void itemChange(const QGraphicsItem *item, QGraphicsItem::GraphicsItemChange, const QVariant &value);
virtual void prepareBoundingRectChange(const QGraphicsItem *item);
- virtual void sceneRectChanged();
QGraphicsSceneIndex(QObjectPrivate &dd, QGraphicsScene *scene);