summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicsscene_bsp_p.h
diff options
context:
space:
mode:
authorAriya Hidayat <ariya.hidayat@trolltech.com>2009-03-16 14:34:07 (GMT)
committerAlexis Menard <alexis.menard@trolltech.com>2009-04-07 18:16:51 (GMT)
commite30e12306c9cc834eada3ce07b32761748fa423a (patch)
treeb26e0df38beec4f9f4819ff6479d9c4a6521c909 /src/gui/graphicsview/qgraphicsscene_bsp_p.h
parent2a1ced292424501d3bf453f337f8ce9c8c17bda9 (diff)
downloadQt-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.h7
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);