diff options
author | Qt Forward Merge Bot <qt_forward_merge_bot@qt-project.org> | 2019-04-01 08:01:56 +0200 |
---|---|---|
committer | Qt Forward Merge Bot <qt_forward_merge_bot@qt-project.org> | 2019-04-01 08:01:56 +0200 |
commit | 5ea190ac941ed9889de049df221b56db065529d0 (patch) | |
tree | c0b7b4b2a6bb30c4ec1a653715760c50d9e34ce9 /src/positioning/qgeopath.cpp | |
parent | 5389a65dc7434c4ed269a5d0c5cb93f5b12823ba (diff) | |
parent | 5c3e3464c2ccf960ef3aaee4286f3d5b4cde12ac (diff) | |
download | qtlocation-5ea190ac941ed9889de049df221b56db065529d0.tar.gz |
Merge remote-tracking branch 'origin/5.12' into 5.13
Conflicts:
.qmake.conf
Change-Id: I5700c90ee86873599b5e7c9ccb6cef7ca48153e7
Diffstat (limited to 'src/positioning/qgeopath.cpp')
-rw-r--r-- | src/positioning/qgeopath.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/positioning/qgeopath.cpp b/src/positioning/qgeopath.cpp index 843b3f1b..1225d7c8 100644 --- a/src/positioning/qgeopath.cpp +++ b/src/positioning/qgeopath.cpp @@ -292,6 +292,10 @@ QGeoPath QGeoPath::translated(double degreesLatitude, double degreesLongitude) c /*! Returns the length of the path, in meters, from the element \a indexFrom to the element \a indexTo. The length is intended to be the sum of the shortest distances for each pair of adjacent points. + + If \a indexTo is -1 (the default value), the length will be including the distance between last coordinate + and the first (closed loop). + To retrieve the length for the path, use 0 for \a indexFrom and \l QGeoPath::size() - 1 for \a indexTo. */ double QGeoPath::length(int indexFrom, int indexTo) const { |