diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2016-09-27 16:18:04 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-27 16:18:04 +0300 |
commit | e881795ed10484ecfe8de73aaaa349c44eb259db (patch) | |
tree | 1be2ea7d8295bc8d6cb990f095083ad70eed995a /platform/qt/src/qmapbox.cpp | |
parent | 0c0671bff0aa7f2ac7fe0c3e2221e050fbda6905 (diff) | |
download | qtlocation-mapboxgl-e881795ed10484ecfe8de73aaaa349c44eb259db.tar.gz |
[Qt] Header cleanup (#6477)
Make some headers private, so we only commit with the QML API.
Diffstat (limited to 'platform/qt/src/qmapbox.cpp')
-rw-r--r-- | platform/qt/src/qmapbox.cpp | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/platform/qt/src/qmapbox.cpp b/platform/qt/src/qmapbox.cpp index a101eb4986..7e7a3c5f84 100644 --- a/platform/qt/src/qmapbox.cpp +++ b/platform/qt/src/qmapbox.cpp @@ -1,12 +1,14 @@ -#include <mbgl/map/change.hpp> +#include "qmapbox.hpp" + #include <mbgl/gl/gl.hpp> +#include <mbgl/map/change.hpp> #include <mbgl/storage/network_status.hpp> #include <mbgl/util/default_styles.hpp> #include <mbgl/util/traits.hpp> -#include <QMapbox> - #if QT_VERSION >= 0x050000 +#include "qquickmapboxgl.hpp" +#include "qquickmapboxglmapparameter.hpp" #include <QOpenGLContext> #else #include <QGLContext> @@ -73,4 +75,12 @@ Q_DECL_EXPORT void initializeGLExtensions() }); } +Q_DECL_EXPORT void registerTypes() +{ +#if QT_VERSION >= 0x050000 + qmlRegisterType<QQuickMapboxGL>("QQuickMapboxGL", 1, 0, "MapboxMap"); + qmlRegisterType<QQuickMapboxGLMapParameter>("QQuickMapboxGL", 1, 0, "MapParameter"); +#endif +} + } |