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:
parent
fa1a142126
commit
ab7c7b66ec
@ -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;
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user