diff options
author | Lars Knoll <lars.knoll@nokia.com> | 2009-03-27 21:17:10 (GMT) |
---|---|---|
committer | Andreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com> | 2009-04-06 11:49:52 (GMT) |
commit | 30d01c387179160c8c418ecedfb4506a55d282e8 (patch) | |
tree | a2480d95b94c6f07f962d279542854dfbc2178c3 /src/gui/graphicsview/qgraphicsscene_p.h | |
parent | 73ce29e6bc09651a4e70b5e61c36d56e568905c7 (diff) | |
download | Qt-30d01c387179160c8c418ecedfb4506a55d282e8.zip Qt-30d01c387179160c8c418ecedfb4506a55d282e8.tar.gz Qt-30d01c387179160c8c418ecedfb4506a55d282e8.tar.bz2 |
Optimise QGraphicsScene/View::items(const QPointF &pos)
Implement specialized (and more efficient versions) of item_helper()
and child_helper() that test for QPointF in the scene.
Diffstat (limited to 'src/gui/graphicsview/qgraphicsscene_p.h')
-rw-r--r-- | src/gui/graphicsview/qgraphicsscene_p.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/graphicsview/qgraphicsscene_p.h b/src/gui/graphicsview/qgraphicsscene_p.h index 9c165d1..befbbd8 100644 --- a/src/gui/graphicsview/qgraphicsscene_p.h +++ b/src/gui/graphicsview/qgraphicsscene_p.h @@ -197,6 +197,7 @@ public: void mousePressEventHandler(QGraphicsSceneMouseEvent *mouseEvent); QGraphicsWidget *windowForItem(const QGraphicsItem *item) const; + QList<QGraphicsItem *> items_helper(const QPointF &pos) const; QList<QGraphicsItem *> items_helper(const QRectF &rect, Qt::ItemSelectionMode mode, Qt::SortOrder order) const; @@ -208,6 +209,9 @@ public: Qt::SortOrder order) const; void childItems_helper(QList<QGraphicsItem *> *items, const QGraphicsItem *parent, + const QPointF &pos) const; + void childItems_helper(QList<QGraphicsItem *> *items, + const QGraphicsItem *parent, const QRectF &rect, Qt::ItemSelectionMode mode) const; void childItems_helper(QList<QGraphicsItem *> *items, |