Doc: Removed version from "\inqmlmodule QtPositioning"

-QDoc ignores these and uses the "\qmlmodule QtPositioning 5.0"
to determine the import statement.
-Better to remove now to avoid confusion.

Task-number: QTBUG-32172
Change-Id: Ic72481de40bdc69b874e9e6ac3339968b6ac208a
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Doc: Removed version from "\inqmlmodule QtLocation"

-QDoc ignores these and uses the "\qmlmodule QtLocation 5.0"
 to determine the import statement.
-Better to remove now to avoid confusion.

Task-number: QTBUG-32172
Change-Id: I63e468d8e8e5ef672527dc427f02378d0d269ad9
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Doc: Fixed broken Positioning links due to version number.

-Links and documentation with type version number no longer recommended
 because it is a maintainability and consistency issue.

Use <Module name>::<type> to link to a QML type.

Change-Id: I0f5dcb833c32c3845fc48c18fa29a2c89b13f1d0
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Doc: Fixed broken Location links due to version number.

-Documentation should not have the version number.
-Links and documentation with type version number no longer recommended
 because it is a maintainability and consistency issue.

Use <Module name>::<type> to link to a QML type.

Change-Id: I830407e68f0a91f3fb9a5deb3fb5a9a02a100a34
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Make QtLocation QML module compile after QJSValuePrivate constructor change

Change-Id: Ib38ebdbed68689cca035cefa46e02e68bf63ae0b
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Update the git-archive export options

The .gitattributes, .gitignore, .commit-template files do not need to be
present in packaged sources, as they are for people using the Git
repository.  People who download tarballs usually don't reimport into
Git -- they should just download the actual repositories.

Change-Id: I34c049b99475c2aee448a075dec30e5471bf8f83
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
Reviewed-by: Iikka Eklund <iikka.eklund@digia.com>
Include QDataStream.

Don't rely on it being pulled in by other includes.

Change-Id: Ifda86c1a5b3e76299594fafbbb6d2d94f24b0bb3
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Emit updates from Geoclue when an update interval is not specified.

An update interval of 0 is valid and means provide position updates as
frequently as the provider can supply them. The state of the update
timer was being used as the check for whether updates should be
provided. This is invalid for the case of a 0 update interval as the
update timer is not started.

Change-Id: I2c9d3fef41abaa21feafd31b232a7053d179ffd6
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
QtAlgorithms have been deprecated (1 of 2)

Convert to std algorithms to avoid warnings. One qSort case is still
left since it seems to require a more elaborate fix.

Task-number: QTBUG-11022
Change-Id: Ieccc5050b127a58ff1f0aa7c488909f2acfa2972
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Add proper version to QtPositioning and its QML API.

The QML API remains available under 5.0 though.

Change-Id: I037b82e5b12825db610e8458d6c82122ecde4f44
Reviewed-by: Erik Mattsson <erik.mattsson@appello.com>
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Revert "Improve filtering of touch and mouse events."

This reverts commit b34bee26c932b9f7579e99d1dca632cb8c47d85f.

Tests with mapviewer example on Linux have shown that
the map cannot be dragged anymore. Bisecting the history has
revealed b34bee26c to be the culprit.

Task-number: QTBUG-34077
Change-Id: If2aa9ebca4d56d03c7f6414d82a1813adb9b7b11
Reviewed-by: Erik Mattsson <erik.mattsson@appello.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
QtAlgorithms have been deprecated (2 of 2)

Convert to std algorithms to avoid warnings

Change-Id: I348e693fc14d67ad18fddfccd184858386373d23
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
Fix potential enum value clashes in QGeoPositionInfoSource::Error.

The declarative version of the position info source reuses the C++ enums.
Nevertheless the declarative version may add its own enums as well.
Shift the enum values such that C++ and QML version of the API can stay
in sync and at the same time add values independent from each other.

Change-Id: Ic7082a3d34e7a69f6518a3f1268ee319068bf15d
Reviewed-by: Anders Gunnarsson <anders.gunnarsson@appello.com>
Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
Update Positioning QML meta data following QML version bump to 5.2

Change-Id: I8170b591317feb866d208fa4c12a96d3ed52fb7a
Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
Don't start Geoclue providers until necessary.

Creating the Geoclue master client starts the Geoclue providers. This
causes the Geoclue provides to start, even though startUpdates() hasn't
been called yet. Defer creating the master client until startUpdates()
is called and destroy it when stopUpdates() is called.

Change-Id: I8a40eb1d68b50288742b8da088bc14904b1165ba
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Update position when switching position sources.

The declarative position source only updates its position when an update
arrives. The position property is now updated when:

At construction time the position source may have a last known position
available.

When switching position sources, the position is updated to the last
known position of the new source or invalidated in the case that no
position source is selected.

Change-Id: Ib67407f252f2e60d8fd4e32179847f465c1aaf94
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Save and restore the last known position.

Saves the last known location on destruction.

Change-Id: Id3c45bed4e94c9e44656d96a8dffc576c7e26a48
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Merge branch 'stable' into dev

Conflicts:
	src/imports/location/qdeclarativegeomap.cpp
	src/imports/location/qdeclarativegeoroute.cpp
	src/imports/location/qdeclarativegeoroutemodel.cpp
	src/imports/location/qdeclarativegeoroutesegment.cpp
	src/imports/location/qdeclarativepolygonmapitem.cpp
	src/imports/location/qdeclarativepolylinemapitem.cpp
	src/imports/positioning/positioning.cpp

Change-Id: Ieaa5f567d2144d0267e7eef5bd75bde7e0079fbe