summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStephen Kelly <stephen.kelly@kdab.com>2012-01-08 22:20:18 +0100
committerQt by Nokia <qt-info@nokia.com>2012-01-09 18:53:13 +0100
commitab7c7b66ec5750d95e8699a18240d814d956f177 (patch)
tree60a4afd989cacaec64a3c0972627213fa45af658 /src
parentfa1a1421262859cc9f4f48cc16aab0d3a0033ffb (diff)
Fix constness of QGraphicsSceneBspTreeIndex::bspTreeDepth()
Change-Id: I8298afc9c493a1e9c6e49cc36a97184a50709558 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com> Reviewed-by: Thorbjørn Lund Martsum <tmartsum@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/widgets/graphicsview/qgraphicsscenebsptreeindex.cpp2
-rw-r--r--src/widgets/graphicsview/qgraphicsscenebsptreeindex_p.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/widgets/graphicsview/qgraphicsscenebsptreeindex.cpp b/src/widgets/graphicsview/qgraphicsscenebsptreeindex.cpp
index 1f4c3d1c18..1c4653d522 100644
--- a/src/widgets/graphicsview/qgraphicsscenebsptreeindex.cpp
+++ b/src/widgets/graphicsview/qgraphicsscenebsptreeindex.cpp
@@ -601,7 +601,7 @@ QList<QGraphicsItem *> QGraphicsSceneBspTreeIndex::items(Qt::SortOrder order) co
10 items.
*/
-int QGraphicsSceneBspTreeIndex::bspTreeDepth()
+int QGraphicsSceneBspTreeIndex::bspTreeDepth() const
{
Q_D(const QGraphicsSceneBspTreeIndex);
return d->bspTreeDepth;
diff --git a/src/widgets/graphicsview/qgraphicsscenebsptreeindex_p.h b/src/widgets/graphicsview/qgraphicsscenebsptreeindex_p.h
index d1b3099295..b3b31fca6a 100644
--- a/src/widgets/graphicsview/qgraphicsscenebsptreeindex_p.h
+++ b/src/widgets/graphicsview/qgraphicsscenebsptreeindex_p.h
@@ -83,7 +83,7 @@ public:
QList<QGraphicsItem *> estimateTopLevelItems(const QRectF &rect, Qt::SortOrder order) const;
QList<QGraphicsItem *> items(Qt::SortOrder order = Qt::DescendingOrder) const;
- int bspTreeDepth();
+ int bspTreeDepth() const;
void setBspTreeDepth(int depth);
protected Q_SLOTS: