[Qt] Header cleanup (#6477)
Make some headers private, so we only commit with the QML API.
This commit is contained in:
committed by
GitHub
parent
0c0671bff0
commit
e881795ed1
@@ -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
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user