summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gui/graphicsview/qgraphicssceneindex.cpp4
-rw-r--r--src/gui/graphicsview/qgraphicssceneindex.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/graphicsview/qgraphicssceneindex.cpp b/src/gui/graphicsview/qgraphicssceneindex.cpp
index 7360bed..86a2fbb 100644
--- a/src/gui/graphicsview/qgraphicssceneindex.cpp
+++ b/src/gui/graphicsview/qgraphicssceneindex.cpp
@@ -104,9 +104,9 @@ QGraphicsSceneIndex::~QGraphicsSceneIndex()
*/
/*!
- Returns the scene of this scene index.
+ Returns the scene of this index.
*/
-QGraphicsScene* QGraphicsSceneIndex::scene()
+QGraphicsScene* QGraphicsSceneIndex::scene() const
{
return m_scene;
}
diff --git a/src/gui/graphicsview/qgraphicssceneindex.h b/src/gui/graphicsview/qgraphicssceneindex.h
index 3b034d4..a782323 100644
--- a/src/gui/graphicsview/qgraphicssceneindex.h
+++ b/src/gui/graphicsview/qgraphicssceneindex.h
@@ -67,7 +67,7 @@ public:
QGraphicsSceneIndex(QGraphicsScene *scene = 0);
virtual ~QGraphicsSceneIndex();
- QGraphicsScene* scene();
+ QGraphicsScene* scene() const;
virtual void setRect(const QRectF &rect) = 0;
virtual QRectF rect() const = 0;