summaryrefslogtreecommitdiff
path: root/src/positioning/qgeopath.h
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* 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>
* QGeoPath: implement clear functionSamuel Gaist2018-06-271-0/+1
| | | | | | | | | | | | | 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>
* 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-051-1/+4
| | | | | Change-Id: I1f21d25832c7eb87d4a68a89e556f5c859498c2d Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Add QGeoPath::sizePaolo Angelelli2017-06-071-0/+1
| | | | | | | | | | | | A way to retrieve the size of the path is missing, as the path property turns out not to be accessible to QML. This patch adds a Q_INVOKABLE method to expose it. [ChangeLog][QtPositioning][QGeoPath] Add ::size() to QGeoPath to retrieve the number of coordinates in the path. Change-Id: Ifa7a640113cba71f23e36626a84c8b2fe473a07e Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Add support for QGeoPathPaolo Angelelli2016-12-011-0/+102
This patch adds an addition qgeoshapes, QGeoPath. This represents a geographical path where each consecutive geopoints are connected along the shortest line of constant bearing (rhumb line). The path has a width, in meters, that is used in the contains() method to decide whether a coordinate is or not on the path, based on shortest distance to the rhumb line segments. Change-Id: Ia02780e3c8ac6c6d63a6083f53ea0677f8a21a1d Reviewed-by: Alex Blasche <alexander.blasche@qt.io>