summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicssceneindex_p.h
Commit message (Collapse)AuthorAgeFilesLines
* Rename Q_DECLARE_SCOPED_PRIVATE back to Q_DECLARE_PRIVATEHarald Fernengel2009-08-061-1/+1
| | | | | | Rationale: We're using template magic now to get the private pointer in qglobal.h, so no need to have two macros. Also keeps backward compatibility with outside (KDE) code.
* Compile with Q_DECLARE_SCOPED_PRIVATE.Jason Barron2009-08-041-1/+1
| | | | | These classes were moved so they were not updated correctly when I did the merge.
* Fix license header in new files - make testcase pass.Volker Hilsheimer2009-07-151-3/+3
|
* Reduce QTransform operations in QGraphicsSceneIndex.Bjørn Erik Nilsen2009-07-081-4/+3
| | | | | | | Update the scene transform and use it directly in the same fashion as we do in processDirtyItemsRecursive/drawSubtreeRecursive. All auto-tests pass
* More re-factoring of QGraphicsSceneIndex.Bjørn Erik Nilsen2009-07-021-5/+5
| | | | | | | | | | New method: QGraphicsSceneIndex::estimateTopLevelItems. QGraphicsSceneIndex::estimateItems returns *all* items within the rect, but we are only interested in the top-levels (those that are within the rect themselves or have descendants within the rect) when doing recursive drawing/item-lookup. All auto-tests pass. Demos/examples/manualtests run fine.
* Fixes broken BSP lookup in QGraphicsSceneBspTreeIndex.Bjørn Erik Nilsen2009-07-011-1/+2
| | | | | | | | | | | The chip demo was unbelievable slow, so I investigated and found out the bsp always returned almost all items in the tree (40 000 in this particular case). It did so because the tree was initialized with an empty sceneRect. The sceneRect was empty due to a lacking signal-slot connection, resulting in QGraphicsSceneBspTreeIndex::updateSceneRect never being invoked. Auto-test included.
* More re-factoring of QGraphicsSceneIndex.Bjørn Erik Nilsen2009-06-301-7/+27
| | | | | | | | | | Mostly re-factoring of QGraphicsSceneIndexPrivate::recursive_items_helper so it can re-use code from the scene (topLevelItemsInStackingOrder). That also means we'll use the bsp tree in case of NoIndex instead of always looping through the top-levels. This function is now almost identical to QGraphicsScenePrivate::drawSubtreeRecursive, so it might be worth looking into how we can abstract it even more and have one common recursive function.
* Proper handling of scene rect in QGraphicsScene(Index).Bjørn Erik Nilsen2009-06-261-1/+3
| | | | Reviewed-by: Andreas
* More work on getting autotests to pass.Andreas Aardal Hanssen2009-06-231-3/+1
|
* Move QGraphicsSceneIndex into private headers (=> _p.h).Andreas Aardal Hanssen2009-06-181-10/+69
| | | | | | We'd like to keep this API private for now. Reviewed-by: Alexis
* Changes after first round of code reviewing.Andreas Aardal Hanssen2009-06-181-10/+9
| | | | | | | This change removes all code that handles ItemIgnoresTransformations from QGraphicsView, and changes the APIs of the scene index intersectors. Reviewed-by: Alexis
* Kill items_helper and child_items_helper for ever. We have nowAlexis Menard2009-06-151-14/+22
| | | | | | on function recusrsive_item_helper that doing the job. To resolve different use cases we use concept of interceptors for QRectF, QPointF QPolygonF and QPainterPath.
* Kill one items_helper + one childItem helper and use the newAlexis Menard2009-06-111-4/+3
| | | | recursive approach.
* Remove the sorting cache from the QGraphicsScene and move it to the BSP.Alexis Menard2009-06-031-1/+2
| | | | | Now the QGraphicsScene has no idea how works the index. So we can improve it separatly, add new ones and benchmarks existing ones.
* First bunch of changes after an very first API reviewAlexis Menard2009-05-291-0/+96
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.