aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto
Commit message (Collapse)AuthorAgeFilesLines
* anchors.mirrored should not exist in QtQuick 2Martin Jones2012-07-021-2/+2
| | | | | | | | | | anchors.mirrored was removed from QtQuick 1.1 before release, however QtQuick 2 was branched before it was removed, so it currently exists in QtQuick 2. Task-number: QTBUG-26369 Change-Id: Iab85f66f6c5f0ebadc5962cc6962cec15203d55d Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Work around test failure for pixmap cache.Glenn Watson2012-07-022-4/+10
| | | | | | | | | | A deadlock condition can occur in the qtbase network management code. Added a work around for the bug, and marked the test as significant for CI on Ubuntu 10.04 LTS. Task-number: QTBUG-25307 Change-Id: I6c11645d29dfd34b564f0a811c6f3470b8f31312 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Adjust MouseArea autotest to check mouse events with transformationsAdriano Rezende2012-06-302-0/+80
| | | | | | | Tests mouse events with graphical transformations applied to the element. Change-Id: I4b69e35cde4125aa047fa18357b22b898da92c20 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
* Rename speed -> velocity in the particle systemAlan Alpert2012-06-2915-22/+22
| | | | | | | | Matches the convention set in the QtQuick module, for example by ListView and Flickable. Change-Id: I8df57ed1ced8128723d790c30c00cc1b2062787d Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Propagate synthesized mouse events in parallel with touch.Shawn Rutledge2012-06-2814-101/+1543
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The old way of event propagation inside QQuickCanvas was to send the touch event through all elements, and if it was accepted along the way, stop. Otherwise generate a mouse event and propagate it through the items in the same way. With this patch the behavior is changed instead to do the propagation in parallel. The idea is to first send a touch, then a mouse event to each QML item (in paint order) that can potentially handle the events. When items filter their child elements, the same logic applies. Other changes/clarifications: - mouse events no longer get synthesized for more than one touch point - TouchPoints can be distributed to multiple Items - if an item accepts a touch point, it always gets updates, even if the point is stationary - events containing only stationary TouchPoints are discarded - PinchArea must accept any initial single TouchPoint in order to receive subsequent updates, even though it's not pinching yet. This means if PA is on top, items underneath don't get touches. New unit tests showing this behavior were added. This patch was written by Frederik Gladhorn, Laszlo Agocs and Shawn Rutledge. Due to the complexity of the logic some refactoring was done. QQuickMouseEventEx has been removed because it inherently relied on using the QEvent d pointer. Change-Id: If19ef687d7602e83cc11b18d2fecfbbdb4e44f5c Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
* Merge "Merge branch 'buildsystem'" into refs/staging/masterOswald Buddenhagen2012-06-272-3/+2
|\
| * Merge branch 'buildsystem'Oswald Buddenhagen2012-06-262-3/+2
| |\ | | | | | | | | | Change-Id: I230e776290761be7c811c3aec4d915367012fc99
| | * remove pointless qmltest conditionalsOswald Buddenhagen2012-06-261-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | it is a module within this repository, and consequently the flag is always set. Change-Id: I8ffdd6903b1b0835725b824a9deb961d0124ce11 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
| | * don't reference $$QT_BUILD_TREE - it's unavailable hereOswald Buddenhagen2012-06-261-1/+1
| | | | | | | | | | | | | | | | | | Change-Id: Iafef42747b07c900ae22f202c7dfc5c49a1b0f67 Reviewed-by: Alan Alpert <alan.alpert@nokia.com> Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* | | Changing PathView offset doesn't set currentIndex appropriatelyMartin Jones2012-06-271-2/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | If the highlightRangeMode is StrictlyEnforceRange then the currentIndex should always be updated when the path offset changes. Task-number: QTBUG-19835 Change-Id: I2371e5abd430e770bbb8f9f9d5f4e1d17e0d8ff5 Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* | | Implement QAbstractDeclarativeData::isSignalConnected hookKent Hansen2012-06-272-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QQml_isSignalConnected is no longer needed, since QObjectPrivate::isSignalConnected will now call the declarativeData hook. Change-Id: I0685b0fa909d6c6c2d275bfa8d41100d9926a046 Reviewed-by: Michael Brasser <michael.brasser@nokia.com> Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* | | Add enum values from related typesMatthew Vogt2012-06-279-0/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If moc marks a type as being related to another type (by using that type's enums or properties), then include the enum values exported by the related type in those exposed by the dependent type. Task-number: QTBUG-22675 Change-Id: I78e72791a4f470200a9ba986a865ffac6c873725 Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* | | activeWindow is deprecated, use focusWindow.Thiago Macieira2012-06-272-15/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | This complements commit 2753e9a795537df10c5a3b64ec9f6d8d81381837, which had begun fixing this issue, but not completed the entire module. Change-Id: I2d167e467c5553cfa49e04410aec9a7d98c7fc6e Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* | | Do not depend on indirect inclusions: #include and forward-declareThiago Macieira2012-06-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QObject is now no longer indirectly included by qpair.h, so let's make sure it's forward-declared before use. qpair.h also no longer includes qdatastream.h, so #include "qdatastream.h" before using QDataStream. Change-Id: I698b905cb55d9dce0637f534dc5efeffe5ff882e Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* | | Support JS Date object in ListModel with static roles.Glenn Watson2012-06-261-0/+36
|/ / | | | | | | | | | | | | | | | | | | ListModel uses static roles by default for performance reasons. Add JS Date object to list of supported types in this mode, via implicit conversion to QDateTime. Task-number: QTBUG-24456 Change-Id: Ifaa1a8d16290e87b61239ed351a949d66a02990c Reviewed-by: Martin Jones <martin.jones@nokia.com>
* | Rename ListView *speed properties to *velocityBea Lam2012-06-267-12/+12
| | | | | | | | | | Change-Id: I63c02d186b1832e7bf890a00caad150d5bf136cb Reviewed-by: Martin Jones <martin.jones@nokia.com>
* | Fix section delegates not updating when changed.Andrew den Exter2012-06-262-0/+102
| | | | | | | | | | | | | | | | | | Delete all allocated section items before doing an update when the section delegate is changed. Task-number: QTBUG-24899 Change-Id: I09dc7a1c602a49ad7bb37512a7e5116392259457 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* | Position section headers correctly when section property changes.Andrew den Exter2012-06-262-8/+31
| | | | | | | | | | | | | | | | | | | | Schedule a new layout after the section property is changed to correct item positions if section headers are added or removed. Task-number: QTBUG-24900 Change-Id: I7e46ec6dc00e5a810029396a4c5ca4e87ee1d94d Reviewed-by: Martin Jones <martin.jones@nokia.com>
* | Isolate unstable testBea Lam2012-06-261-8/+34
| | | | | | | | | | Change-Id: Id534dc7ff7146799bdb989d8bcf56ca4c0fbeffa Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* | Fix crash in tst_qquicklistview.Andrew den Exter2012-06-263-1/+20
| | | | | | | | | | | | | | | | Destroy the shared canvas before QGuiApplication is destroyed. Task-number: QTBUG-26244 Change-Id: I9aa59bae5314f51c84a61821af2fb3c7a1c77941 Reviewed-by: Bea Lam <bea.lam@nokia.com>
* | Add warning if defining a ListModel with no roles.Glenn Watson2012-06-261-0/+37
| | | | | | | | | | | | | | | | | | | | | | When static ListElement types are declared, the role names are inferred from them at compile time. If they are all empty, it's not possible to add roles to the model, so warn the user of this case. Task-number: QTBUG-21438 Change-Id: Ib4ac30e160c44a5a57ebd1c49fccc2b3db5f0977 Reviewed-by: Bea Lam <bea.lam@nokia.com>
* | Remove superfluous statusChanged signalDamian Jansen2012-06-251-0/+51
| | | | | | | | | | | | | | | | | | If the file name is empty, or is a local file, statusChanged would be emitted twice. Task-number: QTBUG-26155 Change-Id: Id341d1c76d45e3fca19260293f632b0b51a34e90 Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* | Revert "Remove properties related to highlight speed"Bea Lam2012-06-257-0/+13
| | | | | | | | | | | | | | | | | | | | This reverts commit 18fb5506d524dbe380d5bf636c74c93fb85cbc31. Without these properties there's no way to set a constant movement speed. Change-Id: I49cd648846f801eb479ecce8cde09ff49ea11736 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* | Delete canvas created in testBea Lam2012-06-251-0/+2
| | | | | | | | | | | | | | | | | | This was causing a crash on exit. Task-number: QTBUG-23605 Change-Id: I96a38f383a180f8aaf5177ad6d7183f9b0b5e85a Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* | Fix clicking on links in aligned or elided Text.Andrew den Exter2012-06-251-17/+323
| | | | | | | | | | | | | | | | | | Adjust the mouse position to compensate for any alignment offsets and test the elided text layout for anchors if none is found in the normal layout. Change-Id: Idfda3f7e372d0f2d6c1b7bb5f22d7015d52e8239 Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
* | Correctly resolve qrc:/ URLs in type loadingMatthew Vogt2012-06-252-3/+1
| | | | | | | | | | | | | | | | | | | | | | URLS specified with the qrc scheme do not use the 'authority' part of the syntax, and therefore do not necessarily contain a double slash immediately after the scheme. Task-number: QTBUG-25937 Change-Id: I49156b463f11dbb38d6a01d30ea934b0a652c8e5 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* | qmlRegisterRevision clashes with qmlRegisterUncreatableTypeMartin Jones2012-06-253-0/+97
| | | | | | | | | | | | | | | | | | | | | | Add template<typename T, int metaObjectRevision> qmlRegisterUncreatableType() in order to register an uncreatable type for a particular revision. Task-number: QTBUG-23278 Change-Id: Ic165e41c8176916929cf19eb9bf6eef4b5bee1eb Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com> Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* | Fix right aligned cursor position in TextInput with geometry changesPekka Vuorela2012-06-252-1/+8
| | | | | | | | | | | | | | | | Updating the text layout cannot be omitted with NoWrap because line width needs to be updated even with empty content. Change-Id: Ia9b168d6cfe7680cc1c9e7fa641ce7528d2b6d5e Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* | Decode directory separators in source URLsMatthew Vogt2012-06-253-1/+11
| | | | | | | | | | | | | | | | | | URLs with encoded directory-separator characters are not correctly processed by QUrl. Task-number: QTBUG-25981 Change-Id: I78173ef44c4850774b56753335bea34db04c0735 Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* | activeWindow is deprecated, use focusWindow.Thiago Macieira2012-06-251-4/+4
|/ | | | | Change-Id: I846d3121b7e17bcb07bc891e5a8ad9473439e5d9 Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Fix compilation with GCC 4.7 (C++11)Thiago Macieira2012-06-234-6/+6
| | | | | | | | The error was: error: unable to find string literal operator ‘operator"" STR_PORT’ Change-Id: Id4b4e64e296ffc3624be15c20f74a964e6cd1087 Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
* Fix crash when dragging items outside visible area.Andrew den Exter2012-06-221-18/+58
| | | | | | | | | | | | | | | | | | If asynchronous item creation finishes while the content area of a ListView has been dragged full outside the visible area a full refill is triggered which can overwrite the requested index and potentially result in a single delegate item being assigned to multiple view items and later being doubly released. Only create the view item object in the createItem function to prevent this from happening. Secondly only reset the visible items if jumping outside the buffer range rather than just the fill range to prevent churn when the list only contains buffered items. Task-number: QTBUG-26232 Change-Id: I5bce845898ef5f699f34afc268594ef38e01d6a3 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Add gui-private to testsGirish Ramakrishnan2012-06-2225-25/+25
| | | | | | | QWindowSystemInterface will be marked as QPA API. Change-Id: Id174a24f8432219adf1425efe1eb59cf67d48bb9 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Pass the right signal index in visualadaptormodel proxy meta-objectKent Hansen2012-06-222-1/+3
| | | | | | | | | | For QMetaObject::activate(), the index must be relative to the class's own signals (excluding non-signal methods). For QMetaObjectBuilder, the notifier index must be relative to the class's own methods. Change-Id: I22f55d1fc55d56c997135dc78f51b710b37bb01a Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* Remove insignificant_test from DropArea test.Andrew den Exter2012-06-221-2/+0
| | | | | | | | The test has not been failing on recent CI runs. Task-number: QTBUG-24588 Change-Id: I9dd29bbf1a33d9fbf042693a0995dafd887c3064 Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Remove the open and closeSofwareInputPanel functions.Andrew den Exter2012-06-222-16/+0
| | | | | | | | | Functionality is provided by the global Qt.application.inputMethod object. Task-number: QTBUG-21449 Change-Id: I75c082bcbe44c8834ccaf966a3f9a09ab91ec290 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Rename Flickable x/yOrigin to originX/YBea Lam2012-06-223-27/+27
| | | | | | | | This is consistent with the naming of other x/y properties, e.g. contentX/Y, relativeX/Y etc. Change-Id: I5159f8e54a6fda6a1f83a563ea9db47c3b8af238 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Remove properties related to highlight speedBea Lam2012-06-227-13/+0
| | | | | | | | | | ListView should only have duration-type properties (i.e. highlightMoveDuration and highlightResizeDuration) as it's unnecessary to have both duration and speed properties for the highlight animation. (PathView and GridView only have the duration-related properties.) Change-Id: I1b94599e3e89afe6488ce2a882c2802354a859fe Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Add some tests for literal parsingMartin Jones2012-06-222-0/+68
| | | | | Change-Id: I3f3047cf27b1e5d230db0ed4154bac09e6adf087 Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Handle enum values of -1 correctly.Michael Brasser2012-06-224-1/+14
| | | | | | | | | | This was already handled correctly most places; now the remaining cases (using an enum in ListModel, and assigning an enum to an integer property) should also work correctly. Task-number: QTBUG-21679 Change-Id: Ibff13f0b94da94b18e2e3bae4aa6ba44e0fa944b Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Clarify anchor error messages.Michael Brasser2012-06-221-3/+3
| | | | | | Task-number: QTBUG-24625 Change-Id: Icff9fe16f053f7e79039ef31bb56cae00cdf49d1 Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Add tests for clicking and dragging with right and middle buttons.Andrew den Exter2012-06-224-21/+222
| | | | | | Task-number: QTBUG-24461 Change-Id: I2c8b3455cb3aead5df7dfd85f65eb633a552b881 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix locale test on Linux and skip it on Windows.Glenn Watson2012-06-222-7/+38
| | | | | | | | | | | The timezone that V8 internally uses was not being updated at the end of one test, causing failures in subsequent tests. This was only showing up on Windows because the test was being skipped on Linux due to a typo. Skip the test on Windows due to complexity of changing the timezone (added comments in code with details). Change-Id: I47c8542111e8ddfbdeff39815c50d98570b0c6c2 Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
* Support enum return types in Q_INVOKABLE functions.Matthew Vogt2012-06-223-2/+34
| | | | | | | | | Handle enums correctly when used as the return type of a Q_INVOKABLE function. Task-number: QTBUG-23543 Change-Id: I14a506ffee08f5ba6aa0fdf27d6104a3ae5c48b3 Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Report clashing qmldir entries for components and scriptsMatthew Vogt2012-06-227-0/+22
| | | | | | | | | | If a qmldir contains multiple lines that install the same versioned property for a single component name or script qualifier, report an error rather than silently suppress one entry. Task-number: QTBUG-25834 Change-Id: I25d3a24102a5a4fa3d82f1d31d7e52505026fff7 Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Put basic language types into QtQml importChris Adams2012-06-2110-0/+116
| | | | | | | | | | This import is automatically registered by the engine. It provides basic language types (Component and QtObject). Note that the QtQuick import still has these types registered into it, so this commit doesn't break existing code. Change-Id: I8ff190f057fc92969020cf8e896da1649ca3069b Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Disallow signal-handler-specification for non-signal methodsChris Adams2012-06-213-0/+13
| | | | | | | | | | | | | | Previously, the code which checked whether a signal handler specification was valid was incorrect, in that it only checked that a method of the appropriate name existed (rather than specifically a signal method). This commit ensures that the appropriate code is updated to check the method for signal-ness. Task-number: QTBUG-26223 Change-Id: I306f6622aaa710d86c01d5bbc5146eecce7cf2c3 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Enable literal Qt enum assignment to enum properties.Michael Brasser2012-06-213-0/+41
| | | | | | | | Assigning Qt global enums to enum properties was previously handled as a binding, rather than a literal assignment. Change-Id: If6bb65f63b34f4e10c0636221ddadb11f7025735 Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Fix warnings in declarative tests.Friedemann Kleint2012-06-207-18/+22
| | | | | | | | | | | | - Unused variables and test data. - () around operator &&. - Conversion of false to 0-pointer where QVariant was intended. - Missing enumeration value. - Remove duplicated qqmlecmascript entry from qml.pro (has an internal check for no-widgets). Change-Id: Ie030167e22bce26e3988a4406c630fb460f61a3c Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Mark tst_qquicklistview insignificant for Mac.Friedemann Kleint2012-06-201-0/+1
| | | | | | | Task-number: QTBUG-26244 Change-Id: I314fa5293ffaa72dafa843d1a950d0abed5a4516 Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>