summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexis Menard <alexis.menard@nokia.com>2009-05-06 08:16:51 (GMT)
committerAlexis Menard <alexis.menard@nokia.com>2009-05-06 08:16:51 (GMT)
commit560ca373e4879f335a0ceeb3f8a769cc0e4297fe (patch)
tree387936b69a762e8edc7b1547329adcc7e18a6ef2 /src
parent7d39e871e679be8afc10c7109a5cc396ead886f7 (diff)
downloadQt-560ca373e4879f335a0ceeb3f8a769cc0e4297fe.zip
Qt-560ca373e4879f335a0ceeb3f8a769cc0e4297fe.tar.gz
Qt-560ca373e4879f335a0ceeb3f8a769cc0e4297fe.tar.bz2
Make const when it needs to be.
Diffstat (limited to 'src')
-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;