summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicsscenebsptreeindex_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
* Moved private function to test which graphic items is in front of the otherLeonardo Sobral Cunha2009-10-201-2/+0
| | | | | | | This function is moved to graphicsitem private because it is needed by multi-touch event handling and is not specific to bsptreeindex. Reviewed-by: bnilsen
* Inverts the SortOrder in graphics scene to reflect the stacking orderLeonardo Sobral Cunha2009-09-221-1/+1
| | | | | | | | 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
* Compile fix with namepaceshjk2009-07-201-9/+4
| | | | | | Some QT_{BEGIN,END}_HEADER macros had been missing or misplaced. Reviewed-by: thiago
* Fix license header in new files - make testcase pass.Volker Hilsheimer2009-07-151-3/+3
|
* Fixed linking of QtSvg with MSVC.Rohan McGovern2009-07-131-18/+0
|
* More re-factoring of QGraphicsSceneIndex.Bjørn Erik Nilsen2009-07-021-3/+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.
* Speedup item-lookup in Graphics View.Bjørn Erik Nilsen2009-07-021-13/+5
| | | | | | | | | We don't have to do a stable sort anymore because the lessThan operator now accounts for the insertion order. This also means we don't have to sort all top-level items to preserve the insertion order in QGraphicsScenePrivate::topLevelItemsInStackingOrder. Reviewed-by: Andreas
* More BSP tree index cleanup.Bjørn Erik Nilsen2009-06-301-0/+1
| | | | | | | | Ensure the index of indexed items are reset to -1. Makes tst_QGraphicsScene::itemIndexMethod happy. (this test passed before we actually started using the BSP from the items() functions, see 6ee3fb750377eeedf161d96fef02c5fa336810e9)
* More re-factoring of QGraphicsSceneIndex.Bjørn Erik Nilsen2009-06-301-7/+5
| | | | | | | | | | 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
* Re-factor parts of the QGraphicsSceneBspTreeIndex.Bjørn Erik Nilsen2009-06-251-4/+2
| | | | | This patch adds better support for untransformable items and removes some redundant code.
* More work on getting autotests to pass.Andreas Aardal Hanssen2009-06-231-2/+1
|
* Move QGraphicsSceneBspTreeIndex into private headers (=> _p.h).Andreas Aardal Hanssen2009-06-181-9/+57
| | | | | | We'll keep this as private API for now. Reviewed-by: Alexis
* Changes after first round of code reviewing.Andreas Aardal Hanssen2009-06-181-2/+3
| | | | | | | This change removes all code that handles ItemIgnoresTransformations from QGraphicsView, and changes the APIs of the scene index intersectors. Reviewed-by: Alexis
* API / code review for QGraphicsSceneIndex (internal API).Andreas Aardal Hanssen2009-06-171-0/+40
| | | | | A few minor modifications only, marked some things as ### obsolete, removed the public get/set for the index (it's internal anyway).
* Make eveything internal for now but ready to see the light.Alexis Menard2009-06-171-44/+93
|
* Remove old legacy and fix documentation.Alexis Menard2009-06-161-2/+3
|
* Remove the sorting cache from the QGraphicsScene and move it to the BSP.Alexis Menard2009-06-031-33/+18
| | | | | Now the QGraphicsScene has no idea how works the index. So we can improve it separatly, add new ones and benchmarks existing ones.
* Add an API to know the indexed rect of the index.Alexis Menard2009-05-291-0/+1
| | | | | Usefull for the POV of the scene and let the BSP update its internal structure before the next event loop reentrancy.
* First bunch of changes after an very first API reviewAlexis Menard2009-05-291-11/+7
| | | | | | 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.
* Remove the indexing (BSP) logic from the sceneAlexis Menard2009-04-071-0/+118
We basically add a new index that implement the old BSP logic but in a separate class instead of living into the QGraphicsScene. It will be much more easier to add a new index method or for people to use their own Conflicts: src/gui/graphicsview/qgraphicsitem.cpp src/gui/graphicsview/qgraphicssceneindex.h