diff options
author | Ariya Hidayat <ariya.hidayat@trolltech.com> | 2009-03-16 14:34:07 (GMT) |
---|---|---|
committer | Alexis Menard <alexis.menard@trolltech.com> | 2009-04-07 18:16:51 (GMT) |
commit | e30e12306c9cc834eada3ce07b32761748fa423a (patch) | |
tree | b26e0df38beec4f9f4819ff6479d9c4a6521c909 /src/gui/graphicsview/qgraphicsscene_bsp_p.h | |
parent | 2a1ced292424501d3bf453f337f8ce9c8c17bda9 (diff) | |
download | Qt-e30e12306c9cc834eada3ce07b32761748fa423a.zip Qt-e30e12306c9cc834eada3ce07b32761748fa423a.tar.gz Qt-e30e12306c9cc834eada3ce07b32761748fa423a.tar.bz2 |
Fixes: Make some BSP tree functions as 'private'.
Diffstat (limited to 'src/gui/graphicsview/qgraphicsscene_bsp_p.h')
-rw-r--r-- | src/gui/graphicsview/qgraphicsscene_bsp_p.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/graphicsview/qgraphicsscene_bsp_p.h b/src/gui/graphicsview/qgraphicsscene_bsp_p.h index ebcb402..a8c54f0 100644 --- a/src/gui/graphicsview/qgraphicsscene_bsp_p.h +++ b/src/gui/graphicsview/qgraphicsscene_bsp_p.h @@ -96,9 +96,13 @@ public: void removeItems(const QList<QGraphicsItem *> &items); QList<QGraphicsItem *> items(const QRectF &rect); - QList<QGraphicsItem *> items(const QPointF &pos); + int leafCount() const; +private: + + QList<QGraphicsItem *> items(const QPointF &pos); + inline int firstChildIndex(int index) const { return index * 2 + 1; } @@ -107,7 +111,6 @@ public: QString debug(int index) const; -private: void initialize(const QRectF &rect, int depth, int index); void climbTree(QGraphicsSceneBspTreeVisitor *visitor, const QPointF &pos, int index = 0); void climbTree(QGraphicsSceneBspTreeVisitor *visitor, const QRectF &rect, int index = 0); |