summaryrefslogtreecommitdiff
path: root/src/imports/positioning/positioning.cpp
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@theqtcompany.com>2015-05-18 12:58:04 +0200
committerAlex Blasche <alexander.blasche@theqtcompany.com>2015-05-20 13:34:45 +0000
commit58d8b5e84ac6952b411cff3bca7336073349290e (patch)
treeb67841b21d6f524badc7dd219e693fd430b05065 /src/imports/positioning/positioning.cpp
parentac90417d676a7691c01af7730172f60bf690d4ee (diff)
downloadqtlocation-58d8b5e84ac6952b411cff3bca7336073349290e.tar.gz
Fix crash when initiating map flick w/o QtPositioning import
A map flick requires a QPropertyAnimation for a QGeoCoordinate. The required animation interpolator is exported by the QtPositioning QML plugin. In general a QML Location app should always import QtPositioning as well. In this case the import was missing and subsequently the interpolator for the QGeoCoordinate was never registered. This patch ensures that the QtLocation QML code that requires the animation registers the interpolator in addition to the regular QtPositioning registration. Change-Id: I61759418f0cdf1cb30ff946cc325a112e90c1a2f Task-number: QTBUG-46147 Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src/imports/positioning/positioning.cpp')
-rw-r--r--src/imports/positioning/positioning.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/imports/positioning/positioning.cpp b/src/imports/positioning/positioning.cpp
index 2a010be7..743b73df 100644
--- a/src/imports/positioning/positioning.cpp
+++ b/src/imports/positioning/positioning.cpp
@@ -34,6 +34,7 @@
#include <QtPositioning/private/qdeclarativegeoaddress_p.h>
#include <QtPositioning/private/qdeclarativegeolocation_p.h>
+#include <QtPositioning/private/qgeoprojection_p.h>
#include "qdeclarativepositionsource_p.h"
#include "qdeclarativeposition_p.h"