summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicssceneindex_p.h
diff options
context:
space:
mode:
authorAlexis Menard <alexis.menard@nokia.com>2009-06-03 16:23:20 (GMT)
committerAlexis Menard <alexis.menard@nokia.com>2009-06-03 16:23:20 (GMT)
commitffd6bc0351c96c8a3828bd7376f2b6bda317cd71 (patch)
tree4d2879a9f3525eb0c88df54d21dba71b4748586f /src/gui/graphicsview/qgraphicssceneindex_p.h
parent427c4d6b0a8b3004c86facd382de33c171c0458b (diff)
downloadQt-ffd6bc0351c96c8a3828bd7376f2b6bda317cd71.zip
Qt-ffd6bc0351c96c8a3828bd7376f2b6bda317cd71.tar.gz
Qt-ffd6bc0351c96c8a3828bd7376f2b6bda317cd71.tar.bz2
Remove the sorting cache from the QGraphicsScene and move it to the BSP.
Now the QGraphicsScene has no idea how works the index. So we can improve it separatly, add new ones and benchmarks existing ones.
Diffstat (limited to 'src/gui/graphicsview/qgraphicssceneindex_p.h')
-rw-r--r--src/gui/graphicsview/qgraphicssceneindex_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/graphicsview/qgraphicssceneindex_p.h b/src/gui/graphicsview/qgraphicssceneindex_p.h
index f2cdca3..2014693 100644
--- a/src/gui/graphicsview/qgraphicssceneindex_p.h
+++ b/src/gui/graphicsview/qgraphicssceneindex_p.h
@@ -58,6 +58,7 @@
#if !defined(QT_NO_GRAPHICSVIEW) || (QT_EDITION & QT_MODULE_GRAPHICSVIEW) != QT_MODULE_GRAPHICSVIEW
#include <private/qobject_p.h>
+#include <private/qgraphicsitem_p.h>
QT_BEGIN_NAMESPACE
@@ -86,7 +87,7 @@ public:
const QPainterPath &path,
Qt::ItemSelectionMode mode) const;
- QGraphicsScene *scene;
+ QGraphicsScene *scene;
};
QT_END_NAMESPACE