diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/positioning/qgeocoordinate.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/positioning/qgeocoordinate.cpp b/src/positioning/qgeocoordinate.cpp index 414125ca..f3d3ef9c 100644 --- a/src/positioning/qgeocoordinate.cpp +++ b/src/positioning/qgeocoordinate.cpp @@ -50,16 +50,21 @@ QT_BEGIN_NAMESPACE -#ifndef QT_NO_DATASTREAM + struct CoordinateStreamOperators { CoordinateStreamOperators() { +#ifndef QT_NO_DATASTREAM qRegisterMetaTypeStreamOperators<QGeoCoordinate>(); +#endif +#ifndef QT_NO_DEBUG_STREAM + QMetaType::registerDebugStreamOperator<QGeoCoordinate>(); +#endif } }; Q_GLOBAL_STATIC(CoordinateStreamOperators, initStreamOperators); -#endif + static const double qgeocoordinate_EARTH_MEAN_RADIUS = 6371.0072; |