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>
This commit is contained in:
Stephen Kelly 2012-01-08 22:20:18 +01:00 committed by Qt by Nokia
parent fa1a142126
commit ab7c7b66ec
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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: