summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/location/maps/qabstractgeotilecache.cpp3
-rw-r--r--src/location/maps/qgeofiletilecache.cpp3
-rw-r--r--src/location/maps/qgeotilespec_p.h4
3 files changed, 4 insertions, 6 deletions
diff --git a/src/location/maps/qabstractgeotilecache.cpp b/src/location/maps/qabstractgeotilecache.cpp
index ca8022b5..e99af906 100644
--- a/src/location/maps/qabstractgeotilecache.cpp
+++ b/src/location/maps/qabstractgeotilecache.cpp
@@ -12,9 +12,6 @@
#include <QPixmap>
#include <QDebug>
-Q_DECLARE_METATYPE(QList<QGeoTileSpec>)
-Q_DECLARE_METATYPE(QSet<QGeoTileSpec>)
-
QT_BEGIN_NAMESPACE
QAbstractGeoTileCache::QAbstractGeoTileCache(QObject *parent)
diff --git a/src/location/maps/qgeofiletilecache.cpp b/src/location/maps/qgeofiletilecache.cpp
index 23cf3d45..65ae9d41 100644
--- a/src/location/maps/qgeofiletilecache.cpp
+++ b/src/location/maps/qgeofiletilecache.cpp
@@ -12,9 +12,6 @@
#include <QPixmap>
#include <QDebug>
-Q_DECLARE_METATYPE(QList<QGeoTileSpec>)
-Q_DECLARE_METATYPE(QSet<QGeoTileSpec>)
-
QT_BEGIN_NAMESPACE
class QGeoCachedTileMemory
diff --git a/src/location/maps/qgeotilespec_p.h b/src/location/maps/qgeotilespec_p.h
index 408bcfa3..3d0ac578 100644
--- a/src/location/maps/qgeotilespec_p.h
+++ b/src/location/maps/qgeotilespec_p.h
@@ -17,6 +17,8 @@
#include <QtLocation/private/qlocationglobal_p.h>
#include <QtCore/QMetaType>
+#include <QtCore/QList>
+#include <QtCore/QSet>
#include <QString>
#include <QSharedDataPointer>
@@ -78,5 +80,7 @@ Q_LOCATION_PRIVATE_EXPORT QDebug operator<<(QDebug, const QGeoTileSpec &);
QT_END_NAMESPACE
Q_DECLARE_METATYPE(QGeoTileSpec)
+Q_DECLARE_METATYPE(QList<QGeoTileSpec>)
+Q_DECLARE_METATYPE(QSet<QGeoTileSpec>)
#endif // QGEOTILESPEC_H