summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicssceneindex_p.h
Commit message (Collapse)AuthorAgeFilesLines
* Pass value as const void *const to QGraphicsSceneIndex::itemChange.Bjørn Erik Nilsen2010-01-211-1/+1
| | | | | | | | | We need this change in order to bypass some of the QVariant itemChange notifications from QGraphicsItem::setParentItem. All this is internal stuff and we know what we do, so I don't consider the change too ugly. Task-number: QTBUG-6877 Reviewed-by: alexis
* Update copyright year to 2010Jason McDonald2010-01-061-1/+1
| | | | Reviewed-by: Trust Me
* Removed unused parameter from graphics scene index internal functionLeonardo Sobral Cunha2009-09-251-2/+2
| | | | Reviewed-by: trustme
* Inverts the SortOrder in graphics scene to reflect the stacking orderLeonardo Sobral Cunha2009-09-221-3/+3
| | | | | | | | Inverted all references of Qt::AscendingiOrder <-> Qt::DescendingOrder to make the order parameter consistent with the stacking order, as stated in the docs. The graphics scene index was using the wrong ordering convention. Reviewed-by: andreas
* Update license headers again.Jason McDonald2009-09-091-4/+4
| | | | Reviewed-by: Trust Me
* Update tech preview license header for files that are new in 4.6.Jason McDonald2009-08-311-13/+13
| | | | Reviewed-by: Trust Me
* Fix "We mean it." comments in graphicsviewOlivier Goffart2009-08-261-2/+2
|
* Update contact URL in license headers.Jason McDonald2009-08-121-1/+1
| | | | Reviewed-by: Trust Me
* 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.