summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicsscene_bsp_p.h
diff options
context:
space:
mode:
authorAlexis Menard <alexis.menard@nokia.com>2009-05-29 12:45:35 (GMT)
committerAlexis Menard <alexis.menard@nokia.com>2009-05-29 12:45:35 (GMT)
commit9281f4c219cec2e6a1e24b43e1edd0feb0fcfce5 (patch)
tree593e1914bf75be9e7f015c54970def18ebbd6429 /src/gui/graphicsview/qgraphicsscene_bsp_p.h
parent23a92388505c54155855d2f49d3a9cf81de0e5ea (diff)
downloadQt-9281f4c219cec2e6a1e24b43e1edd0feb0fcfce5.zip
Qt-9281f4c219cec2e6a1e24b43e1edd0feb0fcfce5.tar.gz
Qt-9281f4c219cec2e6a1e24b43e1edd0feb0fcfce5.tar.bz2
First bunch of changes after an very first API review
This basically move some logic from the scene to the index base class. Lot of work need to be done in order to benefits from the device transform. The sorting needs to be move in the BSP tree.
Diffstat (limited to 'src/gui/graphicsview/qgraphicsscene_bsp_p.h')
-rw-r--r--src/gui/graphicsview/qgraphicsscene_bsp_p.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/graphicsview/qgraphicsscene_bsp_p.h b/src/gui/graphicsview/qgraphicsscene_bsp_p.h
index e6ceb78..a13d862 100644
--- a/src/gui/graphicsview/qgraphicsscene_bsp_p.h
+++ b/src/gui/graphicsview/qgraphicsscene_bsp_p.h
@@ -92,8 +92,8 @@ public:
void removeItem(QGraphicsItem *item, const QRectF &rect);
void removeItems(const QSet<QGraphicsItem *> &items);
- QList<QGraphicsItem *> items(const QRectF &rect);
- QList<QGraphicsItem *> items(const QPointF &pos);
+ QList<QGraphicsItem *> items(const QRectF &rect) const;
+ QList<QGraphicsItem *> items(const QPointF &pos) const;
int leafCount() const;
inline int firstChildIndex(int index) const
@@ -106,8 +106,8 @@ public:
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);
+ void climbTree(QGraphicsSceneBspTreeVisitor *visitor, const QPointF &pos, int index = 0) const;
+ void climbTree(QGraphicsSceneBspTreeVisitor *visitor, const QRectF &rect, int index = 0) const;
void findItems(QList<QGraphicsItem *> *foundItems, const QRectF &rect, int index);
void findItems(QList<QGraphicsItem *> *foundItems, const QPointF &pos, int index);