summaryrefslogtreecommitdiff
path: root/src/positioning
Commit message (Collapse)AuthorAgeFilesLines
* Prevent potential blockage of setPreferredPositioningMethods()Alex Blasche2019-01-041-5/+11
| | | | | | | | | | | | | | | | This is useful because on several platforms supportedPositioningMethods() returns NoPositioningMethods while the user has disabled the Location service. At the same time the platforms can only support dynamic supportedPositioningMethodsChanged() notifications after startUpdates() was called. Blocking changes to this property would have been counterproductive as startUpdates() would always fail and notification would not be possible. This affects at least WinRT and Android and Apple platforms need still further investigation. Task-number: QTBUG-66427 Change-Id: Ie03a3ef9c9476d7be3547661eaa87678fdb7b39c Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
* Improve QGeoPositionInfoSource::supportedPositioningMethods() docsAlex Blasche2019-01-041-4/+38
| | | | | | | | | | In particular the differing levels of support on various platforms needed documentation. Task-number: QTBUG-66427 Change-Id: I4c390d14ad69e2f1630e883c8f0a34cbca028a03 Reviewed-by: BogDan Vatra <bogdan@kdab.com> Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
* Register QGeoCoordinate debug streaming operatorAlex Blasche2018-12-211-2/+7
| | | | | | | | | | | This enables the following code: QGeoCoordinate coord(foo, bar); QVariant v; v.setValue(coord) qDebug() << v; Change-Id: I3cc66c359d6be8b8ab9471170ae8763e08c3b3e9 Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
* Enable QVariant::save for QGeoCoordinateAlex Blasche2018-12-211-0/+23
| | | | | | | | Fixes: QTBUG-62682 Fixes: QTBUG-68331 Change-Id: Ibd08934e2b6da06a6b6ff24419e53b87fb2eaa20 Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io> Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* Merge remote-tracking branch 'origin/5.12.0' into 5.12Qt Forward Merge Bot2018-12-052-2/+2
|\ | | | | | | Change-Id: I53b052e12532392192d73da7006b204539cad57c
| * QGeoPath: revert clear API to clearPathv5.12.0-rc2v5.12.0-rc1v5.12.05.12.0Samuel Gaist2018-11-102-2/+2
| | | | | | | | | | | | | | | | 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>
* | Doc: Make documented QML imports follow Qt versioningTopi Reinio2018-11-161-24/+30
|/ | | | | | | | | | | We can now pass parameters to qdoc commands - use them to automate the version bumps for documented QML imports. Also, improve the structure and language on QML module pages. Change-Id: Id56d36a9bc550ab9a1aea1af6ff8da83e5e1feb9 Reviewed-by: Paul Wicking <paul.wicking@qt.io> Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
* Merge remote-tracking branch 'origin/5.11' into 5.12.0v5.12.0-beta4Liang Qi2018-10-301-0/+3
|\ | | | | | | Change-Id: I0f4a3b7bc7c5c7f8da5af631000a6d5156884efe
| * Fix crash when calling QGeoPath::length on empty QGeoPath instanceAlex Blasche2018-10-241-0/+3
| | | | | | | | | | | | | | Fixes: QTBUG-71355 Change-Id: I47b058891a47cd6d020c4e192d40233c57814313 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io> Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
* | Doc: Fix \code command usageTopi Reinio2018-10-251-5/+12
| | | | | | | | | | | | | | | | | | | | | | Since Qt 5.12, \code command accepts parameters, and in-line usage no longer works (and was never documented to work). Also, use \badcode for qmake snippets to make it appear as plain text. Task-number: QTBUG-70980 Change-Id: I53cafdc912b4663d03c19b0a0003693330c94f15 Reviewed-by: Martin Smith <martin.smith@qt.io>
* | QGeoPath: fix clear APIv5.12.0-alpha1Samuel Gaist2018-09-122-2/+2
| | | | | | | | | | | | | | | | | | 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>
* | Add hole support in QGeoPolygonJulian Sherollari2018-08-204-0/+156
| | | | | | | | | | | | | | | | [ChangeLog][QtPositioning] Added holes in QGeoPolygons Change-Id: I490bcf8c4a6d9f35fa364072d8ea70b914bfc640 Reviewed-by: Alex Blasche <alexander.blasche@qt.io> Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
* | Add property for QGeoPolygon's perimeter and QML autotests using itPaolo Angelelli2018-07-232-3/+39
| | | | | | | | | | | | | | QML autotests were previously missing. Change-Id: Id2c3a7fc61c57cef369dda109dbbfca183979443 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | Merge remote-tracking branch 'origin/5.11' into devQt Forward Merge Bot2018-07-071-18/+17
|\ \ | |/ | | | | Change-Id: Ib9f54662206dd80389fa211cf650eb3599938fbb
| * Fix naming in qgeopolygon.cppPaolo Angelelli2018-07-031-18/+17
| | | | | | | | | | | | | | | | | | Documentation as well as variant conversions global static had the wrong name. Change-Id: I43517d6a395a101520344e41cc2cbe97698ac0b2 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
* | QGeoPath: implement clear functionSamuel Gaist2018-06-273-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | Merge remote-tracking branch 'origin/5.11' into devQt Forward Merge Bot2018-06-234-45/+199
|\ \ | |/ | | | | Change-Id: Idcdc09a031efbc418b36214b949aded91391a1ed
| * Combine NMEA sentences - Live modePaolo Angelelli2018-06-214-44/+198
| | | | | | | | | | | | | | | | | | | | 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>
* | Merge remote-tracking branch 'origin/5.11' into devQt Forward Merge Bot2018-06-122-32/+67
|\ \ | |/ | | | | Change-Id: Id27e5a31f3a72eac38b976d546a1f733226cd5ae
| * Refactor QLocationUtils NMEA supportPaolo Angelelli2018-06-062-32/+67
| | | | | | | | | | | | | | | | Introduced an enum with currently supported NMEA sentences. NMEA sentence detection factored out in a separate function. Change-Id: Ib63f7bbedad51844c12b532f8d80988227e2f121 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | Merge remote-tracking branch 'origin/5.11' into devQt Forward Merge Bot2018-05-261-4/+9
|\ \ | |/ | | | | Change-Id: I62794d052a60f4078d3c6aa3912df5893f7a8585
| * QNmeaPositionInfoSource: improve timestamp comparison for updatesPaolo Angelelli2018-05-181-6/+8
| | | | | | | | | | | | | | | | | | | | It can happen that sentences arrive out of order (older sentences after newer sentences). In this case, discard the old data. Task-number: QTBUG-64699 Change-Id: Id1c965c5ecc32d59dbf271410bc0191e262fa269 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
| * QNmeaPositionInfoSource: improve timestamp comparisonPaolo Angelelli2018-05-181-1/+4
| | | | | | | | | | | | | | | | | | Do not use date but only time, if one or both timestamps do not have a valid date. Task-number: QTBUG-64699 Change-Id: I0b8827c84c88df257e45204c11bf9d21e8055c4b Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | Merge remote-tracking branch 'origin/5.11' into devPaolo Angelelli2018-05-163-2/+11
|\ \ | |/ | | | | Change-Id: Ied604f4c229a976749457034eba8ae2f2a385c06
| * Doc: Add license details to index page of Qt PositioningKai Koehne2018-05-141-0/+9
| | | | | | | | | | Change-Id: I2724e771c18940a153bf0428948c32dd47a58554 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
| * Bump Qt Positioning and Location import versions to latest 5.11Alex Blasche2018-04-192-2/+2
| | | | | | | | | | Change-Id: I846f00703b2c6c173e445bf053a92098626db8e2 Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* | Merge remote-tracking branch 'origin/5.11' into devPaolo Angelelli2018-04-266-87/+13
|\ \ | |/ | | | | Change-Id: I566c63a233b2b53e89a2ce288bafd8a9a06cc86c
| * Remove dead codePaolo Angelelli2018-04-182-25/+0
| | | | | | | | | | | | | | Removing a method introduced in 5.9 and apparently never used. Change-Id: Ia1b8bf47630ca84ec2debb12e2e475efc6773ad9 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
| * Merge remote-tracking branch 'origin/wip/navigation' into 5.11Paolo Angelelli2018-04-171-0/+6
| |\ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/location/declarativemaps/qgeomapobject.cpp src/location/declarativemaps/qgeomapobject_p_p.h src/plugins/geoservices/itemsoverlay/qgeomapitemsoverlay.h Change-Id: Iab847e16011b2095d307e2a3610bf9157ae7b92d
| | * Introduce map objects reference implementationPaolo Angelelli2018-04-171-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch introduces a reference implementation for the QGeoMapObject subclasses in the locationlabs module. If this module is built, all current plugins, with the exception of mapboxgl, will also be able to render map objects. The current reference implementation of map objects is not optimized, but it can be useful for both testing and feature parity (so that switching between plugins will give the same result). Change-Id: I830ebb3813f219e42c085f450952a2b4327361cd Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
| * | API Fix: remove QGeoCoordinate <-> QGeoCoordinateObjectPaolo Angelelli2018-04-172-59/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was some code needed for supporting something that eventually did not get in. So we can as well remove it altogether from the API. Change-Id: Ibbfc50fb950c316308ce1d666e39da33527faa9e Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
| * | Improve QGeoPath::path documentation and add autotestsv5.11.0-beta4Paolo Angelelli2018-04-121-3/+7
| | | | | | | | | | | | | | | | | | Change-Id: I8359c79f114abd0006012098cc154695013e0512 Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | | Add QGeoPositionInfoSource::supportedPositioningMethodsChangedPaolo Angelelli2018-04-092-0/+9
|/ / | | | | | | | | | | | | | | The signal is meant to be emitted by backends Task-number: QTBUG-66427 Change-Id: I8bc123e358dc76489b5eac85f397cd7f40072335 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | Doc: Fix all documentation warningsTopi Reinio2018-03-278-24/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix multiple warnings caused by invalid documentation configuration, missing QML module specifiers, wrong QML type names, incorrect arguments for the \fn command, and missing documentation. Remove incorrect statement from the example usage of the Waypoint QML type. Use 'QtLocation' as the name for the module throughout the docs. Clang (used as the parser for QDoc in Qt 5.11) was unable to resolve the path for qlocation.h, causing QDoc to omit the QLocation namespace documentation. Fix this by including the file explicitly from qlocationglobal.h for documentation builds. Change-Id: I2bd790db1ff5ad96f0cdb415a682b97593b3a6dc Reviewed-by: Martin Smith <martin.smith@qt.io>
* | Declare/Register metatype for QGeoPositionInfoPaolo Angelelli2018-03-232-0/+3
|/ | | | | | | | | | 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 export for QDoubleVector2D and QDoubleVector3DPaolo Angelelli2018-03-192-4/+4
| | | | | Change-Id: I422b4e67843fe1910f85299cec437a5c7c24814d Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* qgeopositioninfo_p.h: Add "We mean it" commentFriedemann Kleint2018-03-191-0/+11
| | | | | | | | Fix warning: QtPositioning: WARNING: .../qtlocation/src/positioning/qgeopositioninfo_p.h does not have the "We mean it." warning Change-Id: I1f36f5505316b06b22522877bf53660fdfee79b1 Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
* Merge remote-tracking branch 'origin/5.10' into 5.11Liang Qi2018-02-197-61/+288
|\ | | | | | | | | | | | | | | | | | | | | | | 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-267-61/+288
| |\ | | | | | | | | | | | | | | | | | | | | | Conflicts: tests/auto/qgeotiledmap/tst_qgeotiledmap.cpp tests/plugins/declarativetestplugin/testhelper.h Change-Id: Ie218ab1dc68642a6922e05e5688c20b90440b72e
| | * Fix NmeaPositionInfoSource not combining sentences - simulation modePaolo Angelelli2018-01-106-60/+285
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| | * Document that WinRT plugin can be used for Win32 env (if platform is Win10)Alex Blasche2018-01-091-1/+3
| | | | | | | | | | | | | | | | | | | | | Task-number: QTBUG-65325 Change-Id: I46bbca4d90ef9d96be91ffbb2346f8f4e6da8855 Reviewed-by: Mika Salmela <mika.salmela@qt.io> Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
* | | Fix positioning projectPaolo Angelelli2018-02-192-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | Remove a non-existing header, and add the we mean it disclaimer on a private header missing it. Change-Id: I47847f0cf86693298fc1e778979ecfa3d1f9cc34 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | | Replace Q_NULLPTR with nullptrKevin Funk2018-02-052-2/+2
| | | | | | | | | | | | | | | Change-Id: Icbebfaae93cc5827d80ef09323ec82868789838a Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* | | Replace Q_DECL_OVERRIDE with overrideKevin Funk2018-02-053-24/+24
| | | | | | | | | | | | | | | Change-Id: Iaa670de181255ea570fcf7bcbe465987ef7fc2fc Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* | | Add sync.profile and configure.json to .pro filesPaolo Angelelli2018-01-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | So that they show up in creator and can be inspected/modified easily. Change-Id: Ice26038fd9542496ea98221d6a8b0b05620507dd Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
* | | qgeopath.h: Fix include directiveFriedemann Kleint2018-01-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add the module name. Amends a080df7b8810dd89121a20b1b5750015ab1f9f2d. Change-Id: Id21fb3c2eb7d666c9c7f6ecd05e6775a82ca0f30 Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
* | | Make QGeoPath::path a qvariantlist propertyPaolo Angelelli2017-12-052-3/+36
| | | | | | | | | | | | | | | Change-Id: I1f21d25832c7eb87d4a68a89e556f5c859498c2d Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | | Introduce WaypointPaolo Angelelli2017-11-305-1/+228
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch replaces QGeoCoordinate with Waypoint as mean to specify waypoints in a RouteQuery. This patch also adds a new invokable to RouteQuery, waypointObjects, to return QDeclarativeGeoWaypoints instead of QGeoCooordinates. NOTE: If, by 5.11, support to perform implicit conversions in method invocations based on converters registered in the metatype system will be added, this method could/should be removed, and QDeclarativeGeoWaypoint objects should be return as QVariants from the waypoints() getter, as they could be used in place of QGeoCoordinate when passing them as arguments. Task-number: QTBUG-64066 Change-Id: I77747f53cdcbabe6430580b60fa59d4afe8c650a Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | | Merge remote-tracking branch 'origin/5.10' into devLiang Qi2017-11-2011-45/+74
|\ \ \ | |/ / | | | | | | Change-Id: I9adfdf056dd04f33e9fbd01bcb2ca2ad75e95007