summaryrefslogtreecommitdiffstats
path: root/tests/auto
Commit message (Collapse)AuthorAgeFilesLines
* Clicking on a selected item wouldn't reset the selection anymore.Gabriel de Dietrich2009-12-151-0/+23
| | | | | | | | | | | Before commit 88ecc8c8250505129ccff2660c60412996e2fd85, this case was handled during the mouse release event, but was responsible for selections being made twice sometimes. We now check whether a selection actually happened during the mouse press event. If not, we will try to select again during the mouse release event. Auto-test included. Reviewed-by: Thierry Task-number: QTBUG-6753
* Merge commit 'origin/4.6' into 4.6Olivier Goffart2009-12-147-5/+534
|\
| * Merge commit oslo-staging-2/4.6 into upstream/4.6Olivier Goffart2009-12-1410-10/+152
| |\
| * \ Merge commit '9aa60dfdf5b4837b9ceb15d8fcbc96f37dce7b5a' of Oslo-Staging-1 ↵Simon Hausmann2009-12-135-3/+520
| |\ \ | | | | | | | | | | | | into 4.6
| | * | Fix crashes when deleting QWidgets and QGraphicsItems in touch event handlers.Bradley T. Hughes2009-12-111-1/+245
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use QWeakPointer to bail out early if a widget is deleted while we are delivering/propagating a TouchBegin event. In QGraphicsScene, we need to make sure that we clear the scene's active touch points for items that are removed from the scene. This allows us to detect when an item is removed during TouchBegin event delivery/propagation. Unlike QWidget, propagation continues since we use a hit-test instead of the item's hierarchy for propagation. Task-number: QTBUG-6654 Reviewed-by: bnilsen
| | * | Fix tst_QTouchEvent::touchUpdateAndEndNeverPropagate()Bradley T. Hughes2009-12-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QGrahpicsItem behaves similarly to QWidget; if the TouchUpdate or TouchEnd event is ignored, then the event sent to the view and scene will also be ignored. Reviewed-by: Trust me
| | * | Ensure that QProcessEnvironment::operator== doesn't crashThiago Macieira2009-12-103-0/+271
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Also add an extensive autotest suite for QProcessEnvironment Task-number: QTBUG-6701 Reviewed-by: Markus Goetz
| | * | Fixes a qfileinfo autotest.Denis Dzyubenko2009-12-101-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | Canonical file paths can begin with slash only on unix platforms. Reviewed-by: Prasanth
| * | | Put symbian-specific test inside symbian qmake scope.Rohan McGovern2009-12-101-1/+4
| | | |
| * | | Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt into 4.6Bill King2009-12-0911-28/+213
| |\ \ \
| | * \ \ Merge branch 'berlin-staging-2' into 4.6Joerg Bornemann2009-12-091-1/+1
| | |\ \ \ | | | |/ / | | |/| |
| | | * | Compilation fix for Windows Mobileninerider2009-11-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The default style (plastique) used was not available if not included in the build. Using now the windows style instead. Reviewed-by: Maurice
| | * | | Merge commit 'origin/4.6' into 4.6-upstreamBradley T. Hughes2009-12-091-0/+10
| | |\ \ \
| | | * | | Autotest: ensure that QSharedPointer does proper autocasting throughThiago Macieira2009-12-081-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function calls. Seen on qt-interest. Reviewed-by: Trust Me
| * | | | | Remove this unnecessary and verbose line.Bill King2009-12-081-1/+0
| | | | | |
* | | | | | Fix QMetaObject::connect and disconnect with "dynamic signals"Olivier Goffart2009-12-141-0/+144
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QML might pass index that are larger that the method cound. We must not call QMetaObjectPrivate::originalClone in that case as this would read invalid memory Reviewed-by: brad
* | | | | | Test fixed for Windows CE.ninerider2009-12-141-13/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some test very corrected, the low level file descriptor tests mostly skipped as well as the multiple memory mapping of a file, which resulted in the file handle not beeign properly released. Reviewed-by: thartman
* | | | | | Compilation fix for Windows Mobileninerider2009-12-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The default style (plastique) used was not available if not included in the build. Using now the windows style instead. Reviewed-by: Maurice
* | | | | | Optimize QGraphicsItemEffectSourcePrivate::pixmap() for QGraphicsPixmapItems.Samuel Rødal2009-12-141-0/+49
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Even for DeviceCoordinate mode we can return the raw pixmap if the graphics item size is untransformed. Reviewed-by: Bjørn Erik Nilsen
* | | | | Stabilize testOlivier Goffart2009-12-142-2/+3
| | | | |
* | | | | Fixes Graphicsitem transformation problems when grouping/ungrouping.Yoann Lopes2009-12-111-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New transformation properties added in 4.6, such as rotation or transformOriginPoint were not taken into account in addTogroup and removeFromGroup. Autotest and manual test included. Task-number: QTBUG-5071 Reviewed-by: bnilsen
* | | | | Merge branch '4.6' of scm.dev.nokia.troll.no:qt/oslo-staging-2 into 4.6Jan-Arve Sæther2009-12-111-1/+1
|\ \ \ \ \
| * | | | | Fixed qgraphicseffectsource autotest.Samuel Rødal2009-12-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prevent crashing when asking for a source pixmap in logical coordinates and PadToEffectiveBoundingRect mode. Also, change the expected values for the test that uses LogicalCoordinates and PadToEffectiveBoundingRect mode to reflect that the boundingRectFor() function applies padding in device coordinates (and in this case there is a scale by 2 when drawing the effect). Reviewed-by: Bjørn Erik Nilsen
* | | | | | Add a simple check for a common wrong usage to avoid infinite recursionJan-Arve Sæther2009-12-111-0/+20
|/ / / / / | | | | | | | | | | | | | | | Reviewed-by: Alexis
* | | | | Prevented leak of keys in QPixmapCache.Samuel Rødal2009-12-101-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removing a pixmap from the pixmap cache using the new QPixmapCache::Key API left the keys dangling in the QCache's internal QHash. The problem is that the Key is invalidated as soon as the QPixmapCacheEntry is destroyed, thus removing it from the hash failed. Reordering the destruction of the object and the removal of the key in QHash fixes the problem. Reviewed-by: Alexis Reviewed-by: Thiago
* | | | | Fix redraw bugs when using graphics effects in device coordinate mode.Samuel Rødal2009-12-101-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QGraphicsEffect::boundingRectFor() needs the source bounding rect in device coordinates. This patch fixes the documentation to reflect this, and fixes some internal usage of boundingRectFor() to ensure it always gets the device rect of the source. Task-number: QTBUG-5918 Reviewed-by: Bjørn Erik Nilsen
* | | | | Fixes internal drag and drop in QListWidget while dropping to the endOlivier Goffart2009-12-101-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | Task-number: QTBUG-6565 Reviewed-by: Gabriel
* | | | | Fix spinbox input when seecting the prefixThierry Bastian2009-12-101-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If you were selcting the prefix and entering a digit the cursor position would not be updated correctly Task-number: QTBUG-6670 Reviewed-by: ogoffart
* | | | | Fix a crash on the focus chain when removing items from the scene.Alexis Menard2009-12-091-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The crash was because of the dangling pointer set on the tabFocusFirst attribute in QGraphicsScene. A child which was the tabFocusFirst was removed from the scene and fixFocusChainBeforeReparenting was setting the new tabFocusFirst pointer to the parent (since in that example it was the focusNext) but later on the parent was removed also from the scene (due to the recursion of removeItem if you call it with the parent : first children, then the parent itself) and fixFocusChainBeforeReparenting was not called again so if you delete the parent then the scene has the dangling pointer set. Task-number:QTBUG-6544 Reviewed-by:janarve
* | | | | Merge upstream/4.6 into oslo-staging-2/4.6Olivier Goffart2009-12-094-4/+80
|\ \ \ \ \ | | |/ / / | |/| | | | | | | | | | | | | Conflicts: src/s60installs/bwins/QtGuiu.def
| * | | | Merge oslo-staging-2/4.6 into upstream/4.6Olivier Goffart2009-12-099-27/+202
| |\ \ \ \ | | |/ / / | |/| | |
| * | | | Merge remote branch 'staging/4.6' into 4.6Oswald Buddenhagen2009-12-071-1/+27
| |\ \ \ \
| | * | | | Added auto test for the cursor position when doing block undo and redomae2009-12-041-1/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Block changes in different selections happens quite frequently with Qt Creator, e.g. when renaming local variables. This test tests the desired cursor position behaviour: after an undo, the cursor should be where it was when the block operation started. After a redo, the cursor should be where it was after the block operation ended.
| * | | | | Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt into 4.6Bill King2009-12-0611-12/+241
| |\ \ \ \ \ | | | |_|/ / | | |/| | |
| | * | | | Merge commit '33441e2a611f07207b0b942368aab9010cdf8ab1' of ↵Simon Hausmann2009-12-052-2/+26
| | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | oslo-staging-1/4.6 into 4.6
| | | * | | | Add config checks to auto.proJouni Hiltunen2009-12-021-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tests\auto\auto.pro does not check for qt3support or opengl. On symbian this generates errors as the build file generation for the tests is skipped but the tests are still added into bld.inf for the autotests. X:\QT\tests\auto\BLD.INF:250: qgl\bld.inf: No such file or directory Added check for qt3support before adding Q3SUBDIRS and opengl check before adding qgl. External-Reviewed-by: samuelnevala Merge-request: 2104 Reviewed-by: Thiago Macieira <thiago.macieira@nokia.com>
| | | * | | | Merge branch '4.5' into 4.6-stagingThiago Macieira2009-12-021-0/+23
| | | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: doc/src/getting-started/known-issues.qdoc src/script/qscriptextqobject.cpp tests/auto/qscriptextqobject/tst_qscriptextqobject.cpp
| | | | * | | | make signal handlers understand QVariant againKent Hansen2009-11-301-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also, issue a warning if a type is not known to the meta-type system. Backport of 508c9cd681244a5ad566c12733aa70f5bd522b57 Task-number: QTBUG-5060
| | | | * | | | fix baseline for "backslashes"Oswald Buddenhagen2009-11-161-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | this is a windows-only test, so it never failed for the "usual suspects" ...
| * | | | | | | Fixes: QOCI setForwardOnly(true) accumulating values.Bill King2009-12-041-1/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | readPiecewise() is assuming an empty valueCache when reading a new row. setForwardOnly(true) means that only one row is used/re-used. The value cache wasn't being cleared out when moving to a new row, so the above assumption was invalid. Task-number: QTBUG-6421 Reviewed-by: Justin McPherson
* | | | | | | | Use 64bit for the connectedSignalsOlivier Goffart2009-12-091-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | as QML objects may have lots of signals Do not use quint64 as it would produce lots of useless padding on MSVC 32bit Reviewed-by: Brad
* | | | | | | | Fix regression in qVariantFromValue when converting from complex type to ↵Olivier Goffart2009-12-091-0/+17
| |_|_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | simple type QVariant v = QColor(Qt::red); v.setValue(1000); Would produce a variant with garbage. the destructor of QColor would not be called, and the 1000 would be in the QVariant::PrivateShared, while most of the QVariant code assume that numbers are dirrectly in the QVariant::Data union Task-number: QTBUG-6602 Reviewed-by: Thierry
* | | | | | | Fixes broken graphics effect auto tests.Bjørn Erik Nilsen2009-12-081-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This broke after commit: fb78a402b512b017c850e7410745c4d20da04a7c Effects and auto-tests are now in line with the documentation.
* | | | | | | Assert in designer while drag & dropping items from a QListWidgetGabriel de Dietrich2009-12-071-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Did not honour returned value from beginMoveRows(). Auto-test included. Reviewed-by: leo Task-number: QTBUG-6532
* | | | | | | Fixed memory leaks when removing a QGraphicsEffect from a QGraphicsItem or ↵Yoann Lopes2009-12-072-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QWidget with setGraphicsEffect(0). The effect was not deleted in that case, problem solved for both QGraphicsItem and QWidget. Autotest included. Task-number: QTBUG-5917 Reviewed-by: bnilsen
* | | | | | | Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt-s60-public into ↵axis2009-12-071-1/+15
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 4.6-staging2
| * | | | | | | Switched S60 QDesktopServices implementation to CDocumentHandler based.Janne Anttila2009-12-041-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RApaLsSession based implementation did not succeed to start music player in some S60 devices to playing mode. The only found solution to this problem was to start using CDocumentHandler based implementation. CDocumentHandler adds a new S60 dependency, but it is needed to make QDesktopServices APIs fully fuonctional. However if Qt is comfigured without S60 we still fallback to RApaLsSession implementation. With CDocumentHandler the files are also opened as embedded, due to the fact that swicthing files in stand-alone mode would require SwEvent capability. Task-number: QTBUG-4699 Reviewed-by: Miikka Heikkinen
* | | | | | | | Fix programming error in autotest commit 8529a8cbbPaul Olav Tvete2009-12-071-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | setWindowFlags() resets the flags, so the previous version only worked on X11.
* | | | | | | | Fixes problem with QMenu when it's populated on the aboutToShowPierre Rossi2009-12-041-1/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the menu is populated that late, if the menu is to go off-screen, then it is moved and ends up covering its originating button. Includes some code cleanup thanks to Thierry's tips. Reviewed-by: Gabriel Reviewed-by: Thierry
* | | | | | | | Merge commit 'origin/4.6' into 4.6Olivier Goffart2009-12-0410-53/+133
|\ \ \ \ \ \ \ \ | | |_|/ / / / / | |/| | | | | |