diff options
author | Alexis Menard <alexis.menard@trolltech.com> | 2009-03-04 15:35:08 (GMT) |
---|---|---|
committer | Alexis Menard <alexis.menard@trolltech.com> | 2009-04-07 17:51:14 (GMT) |
commit | 33a0ebfc5c9b18850d4d09900fe9dea8abfd1fd2 (patch) | |
tree | 0d17bb07765f5b8f55f1186a92eeaa6a7cd60195 /src/gui/graphicsview/qgraphicsscene.h | |
parent | 37c72476fc444d3089075473cb4e9aa42ed64694 (diff) | |
download | Qt-33a0ebfc5c9b18850d4d09900fe9dea8abfd1fd2.zip Qt-33a0ebfc5c9b18850d4d09900fe9dea8abfd1fd2.tar.gz Qt-33a0ebfc5c9b18850d4d09900fe9dea8abfd1fd2.tar.bz2 |
Fixes: Initial work on an API to allow a custom/indexing on the QGraphicsScene
Diffstat (limited to 'src/gui/graphicsview/qgraphicsscene.h')
-rw-r--r-- | src/gui/graphicsview/qgraphicsscene.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/graphicsview/qgraphicsscene.h b/src/gui/graphicsview/qgraphicsscene.h index 9802f87..7e1e040 100644 --- a/src/gui/graphicsview/qgraphicsscene.h +++ b/src/gui/graphicsview/qgraphicsscene.h @@ -83,6 +83,7 @@ class QGraphicsSimpleTextItem; class QGraphicsTextItem; class QGraphicsView; class QGraphicsWidget; +class QGraphicsSceneIndex; class QHelpEvent; class QInputMethodEvent; class QKeyEvent; @@ -113,6 +114,7 @@ class Q_GUI_EXPORT QGraphicsScene : public QObject public: enum ItemIndexMethod { BspTreeIndex, + CustomIndex, NoIndex = -1 }; @@ -142,6 +144,8 @@ public: ItemIndexMethod itemIndexMethod() const; void setItemIndexMethod(ItemIndexMethod method); + void setSceneIndex(QGraphicsSceneIndex *index); + QGraphicsSceneIndex* sceneIndex(); bool isSortCacheEnabled() const; void setSortCacheEnabled(bool enabled); |