summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Rename QmlDebugServerPlugin -> QmlDebugServiceAaron Kennedy2009-07-138-53/+53
|
* Rename classesAaron Kennedy2009-07-134-56/+56
|
* Merge branch 'kinetic-declarativeui' of ↵Aaron Kennedy2009-07-13253-13735/+13991
|\ | | | | | | git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
| * Merge commit 'qt/master' into kinetic-declarativeuiBjørn Erik Nilsen2009-07-1032-1864/+2947
| |\ | | | | | | | | | | | | Conflicts: src/gui/graphicsview/qgraphicsscene.cpp
| | * Merge commit 'qt/master' into graphicssceneindexBjørn Erik Nilsen2009-07-10251-12296/+11741
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/gui/graphicsview/qgraphicsitem_p.h tests/auto/qgraphicsproxywidget/tst_qgraphicsproxywidget.cpp tests/auto/qgraphicsview/tst_qgraphicsview.cpp
| | | * QListView: improve performance on QListView::selectedIndexesThierry Bastian2009-07-101-7/+9
| | | | | | | | | | | | | | | | Task-number: 233342
| | | * Fix compilation on SnowLeopardNorwegian Rock Cat2009-07-102-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | On 64-bit an id (void *) is 64-bit also, so, it really should be a pointer, but I'll make it a 64-bit int for the time being just so stuff compiles.
| | | * ItemViews: make the pixmap from drag and drop more efficientThierry Bastian2009-07-102-14/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | We don't need to draw all the items that are selected. We just need those whose rect intersects the one from the viewport. Task-number: 233342
| | | * Tablet events get delivered to the widget where the tablet down happend.Luc Devallonne2009-07-101-2/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is basically the Windows version of the bug fixed in change 82e825ed841bce324a6892fcbace03f9936d4f4f Merge-request: 855 Reviewed-by: Norwegian Rock Cat <qt-info@nokia.com>
| | | * QTableView: auto-scrolling could be broken by invisible sectionsThierry Bastian2009-07-101-2/+2
| | | | | | | | | | | | | | | | Task-number: 248688
| | | * QTableView: horizontal scrollbar could be inoperent with big columnsThierry Bastian2009-07-101-0/+4
| | | | | | | | | | | | | | | | Task-number: 240266
| | | * QMainWindow: it is useless to apply the stte after a call to plugThierry Bastian2009-07-101-5/+0
| | | | | | | | | | | | | | | | The layoutState is already current (ie. already applied).
| | | * doc: Clarified that native messages are being handled.Martin Smith2009-07-102-24/+43
| | | | | | | | | | | | | | | | Task-number: 214026
| | | * Fix compilation support with namespaces for QtLibcSupplementThiago Macieira2009-07-101-3/+4
| | | | | | | | | | | | | | | | Reviewed-By: hjk <qtc-committer@nokia.com>
| | | * QFileDialog: the side urls are now always cleaned when they are localThierry Bastian2009-07-101-4/+9
| | | | | | | | | | | | | | | | Task-number: 257579
| | | * QDoubleSpinBox: make sure people can't choose too many decimalsThierry Bastian2009-07-101-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | Maximum number of decimals is DBL_MAX_10_EXP + DBL_DIG Task-number: 257291
| | | * Phonon videos on windows would not show with video acceleration disabledThierry Bastian2009-07-101-1/+1
| | | | | | | | | | | | | | | | Task-number: 257805
| | | * Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtNorwegian Rock Cat2009-07-102-7/+21
| | | |\
| | | * | Support Tablet coordinate on Windows with non-zero physical originLuc Devallonne2009-07-102-13/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Most Wacom tablet have a coordinate origin at 0 (Bamboo,Intous), but some tablet (like DTF 720, which have an integrated screen) have a non zero coordinate origin. Which lead to an errounous y/a tablet pos reported by Qt tablet event. Merge-request: 822 Reviewed-by: Norwegian Rock Cat <qt-info@nokia.com>
| | * | | QGraphicsItem not updated properly when moving parent.Bjørn Erik Nilsen2009-07-102-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Found during manual testing (manualtests/graphicsview/movableitems). Moving a child item (via its parent) outside the viewport, and then back again didn't trigger an update on the child. Reason was that we had a cut-off checking the wrong bit (geometryChanged). This bit means exactly the same as the paintedViewBoundingRectsNeedRepaint bit, except that it doesn't propagate to the children (and that's the bug). We use paintedViewBoundingRectsNeedRepaint instead. Auto-test included.
| | * | | Fixes broken item-lookup for untransformable items.Bjørn Erik Nilsen2009-07-101-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Found during manual testing (manualtests/graphicsview/untransformable). At some point it was not possible to click on an untransformable item. The problem was that none of the untransformable items were top-levels, and none of the transformable top-level items were in the same area, resulting in an empty list of estimated top-level items. Auto-test included.
| | * | | Painting artifacts when closing an embedded popup in Graphics View.Bjørn Erik Nilsen2009-07-101-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Found during manual testing (demos/embeddeddialogs). The problem was that a full update (right before hiding/deleting an item) caused the update request made from the destructor to be discarded. Auto-test included.
| | * | | Painting artifacts when moving an item with partial updates.Bjørn Erik Nilsen2009-07-102-24/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Found during manual testing (dndrobotinproxy). The problem was that the paintedViewBoundingRect was set to an empty rect because the partial update area didn't intersect with the viewport. The item itself was partially inside the viewport. Then, when the item was moved, its old area was not repainted due to this empty paintedViewBoundingRect. Auto-test included.
| | * | | Rendering artifacts when hiding a QGraphicsItem.Bjørn Erik Nilsen2009-07-091-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem was that update() followed by hide() didn't work as expected because the update() caused all sub-sequent update requests to be discareded. This is correct, however, we have to make sure the ignoreVisible/ignoreOpacity bit is set properly; we won't process a hidden item otherwise. Auto-test included.
| | * | | Optimize QGraphicsViewPrivate::updateRect/updateRegion.Bjørn Erik Nilsen2009-07-082-7/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We can do QRect::intersects/contains/operator| faster than QRect because we can assume the rects are normalized. Another important factor is our knowledge about the viewport rect, which is always QRect(0, 0, viewport->width(), viewport->height()). Auto-tests included.
| | * | | Reduce QTransform operations in QGraphicsSceneIndex.Bjørn Erik Nilsen2009-07-082-28/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update the scene transform and use it directly in the same fashion as we do in processDirtyItemsRecursive/drawSubtreeRecursive. All auto-tests pass
| | * | | Reduce QTransform operations in Graphics View.Bjørn Erik Nilsen2009-07-084-61/+188
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the item's cached scene transform directly instead of always making a copy of it. Moreover, we don't have to use the transform at all if the scene transform is a "translate only" transform :-). QTransform already use the same cut-offs, but it must update the type() before it can find out. We don't have to check the type() because that is already stored (and we usually don't call type() when we store the value either). All auto-tests pass.
| | * | | Simplify QGraphicsScenePrivate::processDirtyItemsRecursive.Bjørn Erik Nilsen2009-07-032-62/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This version is easier to read and is slightly faster than the old one. All auto-tests pass.
| | * | | More re-factoring of QGraphicsSceneIndex.Bjørn Erik Nilsen2009-07-0210-96/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-027-52/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | * | | Kill dead BSP tree code in graphics view.Bjørn Erik Nilsen2009-07-022-44/+0
| | | | |
| | * | | Dont include untransformable graphics items twice.Bjørn Erik Nilsen2009-07-021-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This revertes d39a62720ba67a0fa6e4e37519d22f14c7b7404e (we had to do it with the old implementation, but the new one have untransformable items included in the indexed list. The only difference is that untransformable items are also in the untransformable list; otherwise in the bsp tree). Auto-test included.
| | * | | Fixes broken BSP lookup in QGraphicsSceneBspTreeIndex.Bjørn Erik Nilsen2009-07-012-6/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| | * | | Fix a regression with extended style option items.Alexis Menard2009-07-011-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We basically passed an unitialized transform to construct the styleoptions for items that use the useExtendedStyleOption flag. We had an auto-test to cover that but for some reason view.show() was removed by me so the auto-test did nothing. oops. Reviewed-by:bnilsen
| | * | | Compiler warning.Bjørn Erik Nilsen2009-07-011-1/+1
| | | | |
| | * | | Merge commit 'qt/master' into graphicssceneindexBjørn Erik Nilsen2009-07-01117-5582/+2417
| | |\ \ \
| | * \ \ \ Merge commit 'qt/master' into graphicssceneindexBjørn Erik Nilsen2009-07-011331-148898/+179241
| | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/gui/graphicsview/qgraphicsscene.cpp src/gui/graphicsview/qgraphicsscene_p.h src/gui/graphicsview/qgraphicsview.cpp src/gui/graphicsview/qgraphicsview_p.h
| | * | | | | Partially revert 7fe4f8ff71cf09bbabbd3438ef637fe408a11c33Bjørn Erik Nilsen2009-06-301-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have to ensure that the item's top-level is marked as discovered. This broke the dragandroprobot example after we started using the BSP from QGraphicsSceneIndex::items()* (see 6ee3fb750377eeedf161d96fef02c5fa336810e9)
| | * | | | | Make QGraphicsSceneIndex::clear() less nasty.Bjørn Erik Nilsen2009-06-301-2/+3
| | | | | | |
| | * | | | | More BSP tree index cleanup.Bjørn Erik Nilsen2009-06-302-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-305-103/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| | * | | | | Add lacking parenthesis around bitwise AND operator.Bjørn Erik Nilsen2009-06-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This caused a crash in the diagramscene example because "!bits & something" does not have the same meaning as "!(bits & something)", hence item was never removed from the BSP resulting in a stale item pointer.
| | * | | | | Graphics View: BSP tree cleanup.Bjørn Erik Nilsen2009-06-294-18/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ensure the BSP resets the QGraphicsItemPrivate::itemDiscovered bit before returning the list of discovered items.
| | * | | | | Fix broken point item lookup in Graphics View.Bjørn Erik Nilsen2009-06-261-3/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Done with Andreas.
| | * | | | | Proper handling of scene rect in QGraphicsScene(Index).Bjørn Erik Nilsen2009-06-2610-61/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed-by: Andreas
| | * | | | | Re-factor parts of the QGraphicsSceneBspTreeIndex.Bjørn Erik Nilsen2009-06-253-177/+133
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds better support for untransformable items and removes some redundant code.
| | * | | | | Partially revert be79229eBjørn Erik Nilsen2009-06-251-7/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The change in processPendingUpdates was completely wrong and broke several auto-tests.
| | * | | | | Fix tst_QGraphicsItem::collidesWith_item autotest.Andreas Aardal Hanssen2009-06-231-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoid unwanted recursion by keeping the sceneRect variable locally. The recursion happens if the call to sceneRect() lazily emits the sceneRectChanged() signal.
| | * | | | | Ensure that the BSP index returns all untransformable items.Andreas Aardal Hanssen2009-06-231-0/+2
| | | | | | |
| | * | | | | Merge commit 'qt/master' into graphicssceneindexBjørn Erik Nilsen2009-06-23117-1141/+8449
| | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/gui/graphicsview/qgraphicsscene.cpp src/gui/graphicsview/qgraphicsscene_p.h