Fix QGeoRouteReplyOsm::networkReplyFinished

It can happen that the osm router does not find a route between the
specified points. In this case it returns a json object with a status
code other than 0 and an error message.
This commit notifies the app developer that an error occurred and
that no valid route is available.
Prior this it was not possible to catch the error message.

Change-Id: I172ae3cf9dfcd80e5a162110178203084071c9b0
Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Avoid potential double deletion when handling OSM route replies

Change-Id: I15ab944e7b9e7cecc8ff9122183c438fd006e65b
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Fix fitViewportToMapItemsRefine

The item counter was broken. Therefore the bounding box calculation
only worked under certain circumstances.
This commit removes the circle special case calculation, which is
superfluous, and treats all map items the same way.

Change-Id: Ida0a6cf695fb151132bc867eb30ecb834a5bf6c5
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Make QtLocation compile with pre-compiled headers

For some mystical reason Polygon is redefined by an unknown Windows
header preventing this file from compiling if Qt is compiled
with pre-compiled headers.

The workaround is to simply rename this private type.

Discussed-in: http://lists.qt-project.org/pipermail/development/2014-May/017125.html
Task-number: QTBUG-39692
Change-Id: If71e1a12394dfde7729d0505417a37b9fd407c82
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@digia.com>
Merge remote-tracking branch 'origin/5.3' into 5.4

Change-Id: I48f866a8fbb8af18dee640eada24556d097059b0
Merge "Merge remote-tracking branch 'origin/5.3' into 5.4" into refs/staging/5.4
Add changelog for QtPositioning 5.3.2 release.

Change-Id: If443639a44cc22e3e81571033aaee9e4cf188a7b
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Report error when failing to connect to Geoclue.

[ChangeLog][QtPositioning][QGeoPositionInfoSource] Report errors when
failing to connect to Geoclue.

Task-number: QTBUG-40425
Change-Id: If3fa0929b724aa70a1fed01b5951f5bc9bd5adad
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Enforce the use of test.source position plug-in in auto tests

This avoids that platform specific plug-ins such as the geoclue plug-in
on Linux interfere with auto tests. The auto tests require the specific
test plug-in values to succeed.

Task-number: QTBUG-40702
Change-Id: I1c3ea9f6d23e1ad20815a86ded7815e498016af2
Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
Don't hang weatherinfo if position source has an error.

We continue with the simulation mode.

Task-number: QTBUG-40702
Change-Id: I130b0080a198a218803986fb7ff06fdd0b83186a
Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
Add magneticVariation and magneticVariationValid property to QML Position

[ChangeLog][QtPositioning][Position] Added magneticVariation and
magneticVariationValid property to the QML Position type

Task-number: QTBUG-39547
Change-Id: I59d0039f2b501701f67404dabef2ab4c62bcb16b
Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
Fix revision and docs for new MapType::night property

This property was recently added but not properly advertised as Qt 5.4+
API element and the QML revision was not set.

Change-Id: Iab6a125269d627d5e1b3a0e457f6a42708ea7026
Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
Merge branch '5.3' into 5.4

Change-Id: I02ab19530354f656823e59bb43a6fc4786b2f189
Merge branch '5.4' into dev

Change-Id: I24e48656a88c6b17c941fa9f3d9059db4500a6a7