summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Android: disable tests requiring plugins or local filesPaolo Angelelli2019-05-081-18/+23
| | | | | | | | | | | | | While we develop a long term solution to deal with this. Fixes: QTBUG-73575 Fixes: QTBUG-73576 Fixes: QTBUG-73578 Fixes: QTBUG-73579 Fixes: QTBUG-73580 Fixes: QTBUG-73581 Change-Id: Ib70d8f084dcbafa8853e0c687d0a31c88eef991f Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Fix toCoordinate calls in qml testsPaolo Angelelli2019-02-212-3/+3
| | | | | | Task-number: QTBUG-73943 Change-Id: Ia6c008575d0415f5301d177114e4a906cdc7f2e9 Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
* Merge remote-tracking branch 'origin/5.12.1' into 5.12Qt Forward Merge Bot2019-02-011-0/+4838
|\ | | | | | | Change-Id: I13775b0f1df521fef560fa4b39b341517e0edc62
| * Merge 5.12 into 5.12.1Kari Oikarinen2019-01-086-6/+119
| |\ | | | | | | | | | Change-Id: Ib65445a9e316252e7483d2878b8cdad252242177
| * | Add binary compatibility file to QtLocation for 5.12Milla Pohjanheimo2018-12-191-0/+4838
| | | | | | | | | | | | | | | | | | | | | Binary compatibility file added. Change-Id: I46e179f29957a281f0b04424a6d44fb63556b208 Reviewed-by: Sergio Ahumada <sahumada@texla.cl>
* | | test app: Improve status and error handling a bitOliver Wolff2019-01-243-9/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Reset "running" check box if an error occurs - Add check box to manually reset position source's error code, as error is not emitted with NoError - There is no need to handle the "OK" case in errorChanged, as the corresponding signal will not be emitted for NoError Change-Id: I53d637c8efd807d6c3e8abff98963585fe74f220 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | | Set things up for logging in positioning test applicationOliver Wolff2019-01-141-0/+3
| | | | | | | | | | | | | | | Change-Id: I3f44e1a1d5022c00db149b2ba23d4dd91d3b1f1a Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | | Fix QGeoRectangle::operator|=Paolo Angelelli2019-01-141-0/+8
| |/ |/| | | | | | | | | | | | | | | This patch fixes the case when one QGeoRectangle contains the second, and wraps around. Change-Id: I7110c1864082c502845754fab2dc4e783455a446 Fixes: QTBUG-72935 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | Enable testing of QGeoPositionSourceInfo::supportedPositioningMethodsChanged()Alex Blasche2019-01-041-0/+9
| | | | | | | | | | | | | | | | This signal is new and is observable as part of the test application now. Task-number: QTBUG-66427 Change-Id: I3859381f4804112cbf44a365d0c9bb357d068119 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
* | Add ability to visually log position updates in test appAlex Blasche2018-12-126-6/+110
|/ | | | | | | | | | This makes it much easier to check received positions outside of debug/console output. Regular updates cannot be received inside a building which means a device can be taken out of the office for further testing without the need to have a developer machine attached. Change-Id: I1a54a1b2fa269ec4ab75aacc4531158a02345382 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
* Merge remote-tracking branch 'origin/5.12.0' into 5.12Qt Forward Merge Bot2018-12-051-1/+1
|\ | | | | | | Change-Id: I53b052e12532392192d73da7006b204539cad57c
| * QGeoPath: revert clear API to clearPathv5.12.0-rc2v5.12.0-rc1v5.12.05.12.0Samuel Gaist2018-11-101-1/+1
| | | | | | | | | | | | | | | | The original name was correct as clear would need to reset more properties which is was not the goal of this method. Change-Id: Iac43a61e4b8bf57220c88d627b33578612c4ddad Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* | Improve the initialization behavior of CategoryModelPaolo Angelelli2018-11-271-2/+3
|/ | | | | | | | | | | | CategoryModel was missing an update call in the ::componentComplete callback, as well as reacting on the name changed signal of the plugin. An update call was also missing in the setPlugin method. This patch makes it react on the attached signal instead, and adds missing update calls. Fixes: QTBUG-70254 Change-Id: I1a8de0137b4fe4af7c5ffc848799061147febba2 Reviewed-by: Michael Brasser <michael.brasser@live.com>
* Merge remote-tracking branch 'origin/5.11' into 5.12.0v5.12.0-beta4Liang Qi2018-10-301-0/+1
|\ | | | | | | Change-Id: I0f4a3b7bc7c5c7f8da5af631000a6d5156884efe
| * Fix crash when calling QGeoPath::length on empty QGeoPath instanceAlex Blasche2018-10-241-0/+1
| | | | | | | | | | | | | | Fixes: QTBUG-71355 Change-Id: I47b058891a47cd6d020c4e192d40233c57814313 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io> Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
* | Esri: enable place searchv5.12.0-beta3v5.12.0-beta2Guillaume Belz2018-10-091-1/+1
| | | | | | | | | | Change-Id: I136ef0a3125b42b484e36413d26aa49e59a43b57 Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
* | Revert "Mark QNmeaPositionInfoSource tests as insignificant on Windows."Tony Sarajärvi2018-09-215-35/+5
| | | | | | | | | | | | | | | | | | | | | | This reverts commit 63c8b3bca03586994c2b59c262e9cb3a9b12b363. With vSphere based VMs moved to KVM based, we can try if the networking issues have been solved. Change-Id: I41fd6845341df5722c1ba2e0cd76e01bf16df4fb Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Liang Qi <liang.qi@qt.io>
* | QGeoPath: fix clear APIv5.12.0-alpha1Samuel Gaist2018-09-121-1/+1
| | | | | | | | | | | | | | | | | | Change the clear method name from clearPath to just clear to follow more closely the other Qt APIs. Change-Id: I98d4ea43e69e3d365c2c470e9b8b14479f288fe6 Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* | Fix HERE qgeoroutexmlparser and add legs supportPaolo Angelelli2018-09-051-1/+1
| | | | | | | | | | | | | | | | | | | | All route segments after the second waypoint contain broken paths. This patch fixes it refactoring the parsing logic, also adding support for route legs. Change-Id: I30ec9e889a5e16bf81c4a0caf1b59fc895b7ea5e Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | Move management of QDeclarativeGeoMap camera data into QGeoMapPaolo Angelelli2018-08-202-8/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | This patch makes QDeclarativeGeoMap always refer to QGeoMap when it comes to setting and getting camera data properties. The signal emission for each of these properties is also deferred to the reception of QGeoMap::cameraDataChanged. This patch also enable plugins to enforce tilt ranges per zoom, updating the tilt value (as well as any other camera data value) on their own. Change-Id: Icc16645ea53fa2b53b33530f802ce390a2479d39 Reviewed-by: BogDan Vatra <bogdan@kdab.com>
* | Make QDeclarativeGeoMapItemBase::geoShape R/WPaolo Angelelli2018-08-141-12/+1
| | | | | | | | | | | | | | | | This patch adds a setter for the geoShape property, overridden in the subclasses. Change-Id: I5fc4d412efee5e95c5650943ea5bf9b72dc40155 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | Enable nested MapItemViewsPaolo Angelelli2018-07-271-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change allows MapItemView to use a MapItem, MapItemGroup or MapItemView as delegate. To achieve this, MapItemView base class also changes from QObject to MapItemGroup, effectively making MapItemView a MapItemGroup. Note, though, that MapItemGroup API in Map should be avoided, when dealing with a MapItemView, and only MapItemView-specific API should be used. Tests and example coming after [ChangeLog][QtLocation] Enabled nesting of MapItemView. This required a behavioral change, as MapItemView is now a MapItemGroup, not anymore a plain QObject. Due to a bug, MapItemView was previously not a Qt Quick Item, making it possible to create it as a child of any QObject. This has now been fixed, so if you happen to have a MapItemView in your scene which is not a child of a Qt Quick Item, you will get an error message. Task-number: QTBUG-62683 Task-number: QTBUG-62397 Change-Id: Id97e480429e7f952a541fe88df5c01317afeac18 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | Introduce Map.visibleAreaPaolo Angelelli2018-07-264-6/+82
| | | | | | | | | | | | | | | | | | | | This will allow moving the visible map area to a subregion of the viewport, allowing to maintain the desired visible region visible when overlaying controls on top of the map. Task-number: QTBUG-68966 Change-Id: Idf4b30f7c1e4062e5e1c0ddc01a31bc856c0bc0c Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | Add property for QGeoPolygon's perimeter and QML autotests using itPaolo Angelelli2018-07-231-0/+41
| | | | | | | | | | | | | | QML autotests were previously missing. Change-Id: Id2c3a7fc61c57cef369dda109dbbfca183979443 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | QGeoPath: implement clear functionSamuel Gaist2018-06-271-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | QGeoPath is missing a function to clear its content. This patch implements it. [ChangeLog][Positioning] QGeoPath can now be cleared directly using clearPath. Task-number: QTBUG-62875 Change-Id: I215edf180d11002c6f7e57bb10b008e935f32340 Reviewed-by: Alex Blasche <alexander.blasche@qt.io> Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
* | Add QDeclarativeGeoRoute::equalsPaolo Angelelli2018-06-261-2/+10
|/ | | | | | | So that deep comparisons can be performed in QML too Change-Id: I484644d4ddf3334c16321e5fc361504e9de105b2 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Combine NMEA sentences - Live modePaolo Angelelli2018-06-213-13/+14
| | | | | | | | | | This patch combines multiple nmea sentences related to the same update, preventing the push of multiple separate updates with the same timestamp. Task-number: QTBUG-64699 Change-Id: I082cd46924afe0f00e510dc059ff8594373b1e67 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Reduce minimum NMEA update intervalPaolo Angelelli2018-06-211-1/+1
| | | | | | | | Some devices can generate up to 100 updates per second. So the old 100msec minimum update interval was too limiting. Change-Id: I539e308e0249166714d4fb567f8b78c136bc77cb Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Add binary compatibility file for 5.11 for QtLocationMilla Pohjanheimo2018-06-051-0/+4773
| | | | | | | File to test binary compatibility added Change-Id: Idbe38e542fba3b97ca0d9253d9c6b540ed79df84 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* Expect failure in failing test in declarative_geoshape::GeoPath pathKari Oikarinen2018-05-161-1/+2
| | | | | | | The test is failing and based on the comment it seems expected at the moment. Change-Id: I4a484c608a41558826ad3b0c16c2e8338b58a2a5 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* tst_qplacemanager_nokia: Remove unused variableFriedemann Kleint2018-05-041-1/+0
| | | | | | | | | Fix Clang warning: st_qplacemanager_nokia.cpp(68,23): warning: private field 'coreApp' is not used [-Wunused-private-field] QCoreApplication *coreApp; Change-Id: I29f066006c51e5fb2da652a566cf17d7e66137da Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
* Fix MapItemView not setting context data upon item deletionPaolo Angelelli2018-04-171-4/+8
| | | | | | | | | | | | | | | | | | | | The current implementation does not properly re-set context data upon model item deletion/change. This patch uses a QQmlDelegateModel that does all the management internally. To accommodate for items disappearing/reappearing all at once, potentially introducing flickering, a fixed opacity transition 300msec long has been introduced as exit transition. In later Qt releases, new API can be added to let the user change it, as well as also adding an enter transition and possibly more. Task-number: QTBUG-62086 Task-number: QTBUG-65833 Change-Id: I59a8147a12f035d5c7f86c2546e9144b2e1a7b3c Reviewed-by: J-P Nurmi <jpnurmi@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Improve QGeoPath::path documentation and add autotestsv5.11.0-beta4Paolo Angelelli2018-04-121-0/+39
| | | | | | Change-Id: I8359c79f114abd0006012098cc154695013e0512 Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* QQuickGeoMapGestureArea: Fix crasher when m_mousePoint is nullDaniel d'Andrada2018-04-101-0/+12
| | | | | | | | Happens when the first input it receives is a touch one. Task-number: QTBUG-67580 Change-Id: Ia9441c753da15f2fe907901450d182027e11c8aa Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
* Declare/Register metatype for QGeoPositionInfoPaolo Angelelli2018-03-237-12/+2
| | | | | | | | | | Instead of doing it all over the place, declare it in qgeopositioninfo.h and register it in QGeoPositionInfoSource() as well as in positioning.cpp Task-number: QTBUG-65937 Change-Id: I819af3393921bdc9ca46832d5b4181d41546dac0 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Fix tst_map_mouse.qml test_basic_press_release not stealing eventsPaolo Angelelli2018-03-221-3/+4
| | | | | | | | | | | | | With 5af3f07c95e758636090ad4a928fa8e86a7b2dc6, the map gesture area does not get into active state anymore upon mouse release. This behavioral fix causes tst_map_mouse.qml(536) to fail, since clicking somewhere and releasing somewhere else does not activate the gesture area anymore. This patch adds the necessary real-life mouse move in between the two to activate the gesture area, and trigger the tested event stealing. Change-Id: I459a663f9862d0768b17a9ecd71065342917dc10 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* Don't start panning on mouse releaseShawn Rutledge2018-03-161-0/+10
| | | | | | Task-number: QTBUG-66534 Change-Id: I72aee2235c50273fde809e67c83e0c2195db88b4 Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
* API Fix: change QGeoRouteRequest::extraParameters into QVariantMapv5.11.0-beta2Paolo Angelelli2018-03-082-7/+9
| | | | | | | | | | | | | | | | Needed as it turns out the QGeoRouteRequest associated with a QGeoRoute has to be exposed also through the declarative API (so QDeclarativeGeoRoute must expose an associated QDeclarativeGeoRouteRequest). QDeclarativeGeoRouteRequest was, until now, intended to be only a one-way API (to feed data into the plugin). Now that it has also to expose data coming from the plugin, including the associated extraParameters that do would come anymore from nested MapParameters but from the QGeoRouteRequest itself. For this reason the type has to be a QML-friently type. Change-Id: I083e0fe97ad1088f6084665037003e24edb54371 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* Use mouse instead of arguments[0] in signal handlersv5.11.0-beta1Kari Oikarinen2018-02-211-21/+18
| | | | | | | | | Couldn't reproduce the bug that was the explained cause and based on the bug comments it hasn't been reproducible in Qt 5.2+ in 2014 either. Task-number: QTBUG-36560 Change-Id: I198bbba5a3f00bf49a7efbfde30af1696011efd8 Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
* Fix declarative_ui::MouseArea::test_enabled failing in CIKari Oikarinen2018-02-211-1/+1
| | | | | | | | | | | | | | | | The test in the headline failed in CI on first runs, but succeeded in repeats when it is run alone. This was because the previous test declarative_ui::MouseArea::test_basic_press_release led to a situation where the mouseClick() does not actually lead to a click event. QTBUG-66534 was created to track that bug. Skip the part of the test that leads to the failure for now. Task-number: QTBUG-66533 Task-number: QTBUG-66534 Task-number: QTBUG-66216 Change-Id: Iadf3844e97603414594aceafcb1f36cf40653073 Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
* Merge remote-tracking branch 'origin/5.10' into 5.11Liang Qi2018-02-191-23/+34
|\ | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/location/declarativemaps/qdeclarativegeomap.cpp src/location/maps/qgeomap.cpp src/location/maps/qgeomap_p_p.h src/location/maps/qgeorouteparserosrmv5.cpp src/location/maps/qgeotiledmap.cpp src/positioning/positioning.pro Change-Id: I42f8b176a8f3e824c7fe5b067a958735173f0dbb
| * Merge remote-tracking branch 'origin/5.9' into 5.10Liang Qi2018-01-261-23/+34
| |\ | | | | | | | | | | | | | | | | | | | | | Conflicts: tests/auto/qgeotiledmap/tst_qgeotiledmap.cpp tests/plugins/declarativetestplugin/testhelper.h Change-Id: Ie218ab1dc68642a6922e05e5688c20b90440b72e
| | * Fix NmeaPositionInfoSource not combining sentences - simulation modePaolo Angelelli2018-01-101-23/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch is the first half of a fix to prevent NmeaPositionInfoSource to push an update per sentence instead of combining all sentences with the same timestamp into one QGeoPositionInfo. This patch fixes only the source in simulation mode. Additional work is needed for standard mode. Task-number: QTBUG-64699 Change-Id: I39d9905331c5a1f646b7465f4d7d155834bec815 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
| | * Fix license headersJani Heikkinen2017-12-192-28/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | Old header.LGPL21 header was used at some files. Replase those with new header.LGPL one Task-number: QTBUG-57147 Change-Id: Ib35bd7aa0fd5c5334e35097257ba64ece45bcd5a Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
* | | Replace Q_NULLPTR with nullptrKevin Funk2018-02-052-10/+10
| | | | | | | | | | | | | | | Change-Id: Icbebfaae93cc5827d80ef09323ec82868789838a Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* | | Replace Q_DECL_OVERRIDE with overrideKevin Funk2018-02-051-17/+17
| | | | | | | | | | | | | | | Change-Id: Iaa670de181255ea570fcf7bcbe465987ef7fc2fc Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* | | Make QPlace extensiblePaolo Angelelli2018-01-273-1/+59
| | | | | | | | | | | | | | | | | | | | | | | | This change makes it possible to subclass QPlace with custom private implementations. Change-Id: I363c0e8b7db41d9a8400ce6dbddf5405c619eeef Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | | Fix property name in tst_place.qmlPaolo Angelelli2018-01-221-1/+1
| | | | | | | | | | | | | | | Change-Id: I8d0209d3bed93a60692210f985ce65d58ce5d6ca Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | | Merge remote-tracking branch 'origin/dev' into wip/navigationPaolo Angelelli2018-01-222-34/+24
|\ \ \ | | | | | | | | | | | | Change-Id: If60e71a36d0b0034463a88b928e364049270035e
| * \ \ Merge remote-tracking branch 'origin/5.10' into devLiang Qi2018-01-162-34/+24
| |\ \ \ | | |/ / | | | | | | | | Change-Id: I028bef0aa6c51fcf7c10115198f4a7fe8fe89a44