diff options
author | Aaron McCarthy <aaron.mccarthy@jollamobile.com> | 2013-11-27 12:35:55 +1000 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-12-10 00:42:50 +0100 |
commit | 4982e1938a72ef84c4550eca8af9caaa8818f1a4 (patch) | |
tree | d14cebe9ea6913f4f6fd3b15fbf6e67547e1153f /src/plugins/position/geoclue | |
parent | b857f611014b8723751be8bc0418399ac62103ec (diff) | |
download | qtlocation-4982e1938a72ef84c4550eca8af9caaa8818f1a4.tar.gz |
Don't require applications to declare metatypes.
These metatypes need to be declared for common usage of the positioning
API. Declare them in the library header files so that applications are
not forced to do so.
[ChangeLog][QtPositioning][General] Applications no longer need to
register common Qt Positioning data types with the metatype system.
Change-Id: I1d28ec8e33d20efc748cb6a0a2ad302e2061853f
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'src/plugins/position/geoclue')
-rw-r--r-- | src/plugins/position/geoclue/qgeopositioninfosource_geocluemaster.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/position/geoclue/qgeopositioninfosource_geocluemaster.cpp b/src/plugins/position/geoclue/qgeopositioninfosource_geocluemaster.cpp index fc0b8b99..fd299a6c 100644 --- a/src/plugins/position/geoclue/qgeopositioninfosource_geocluemaster.cpp +++ b/src/plugins/position/geoclue/qgeopositioninfosource_geocluemaster.cpp @@ -132,6 +132,8 @@ QGeoPositionInfoSourceGeoclueMaster::QGeoPositionInfoSourceGeoclueMaster(QObject } #endif + qRegisterMetaType<QGeoPositionInfo>(); + m_requestTimer.setSingleShot(true); QObject::connect(&m_requestTimer, SIGNAL(timeout()), this, SLOT(requestUpdateTimeout())); QObject::connect(&m_updateTimer, SIGNAL(timeout()), this, SLOT(startUpdatesTimeout())); |