diff --git a/src/FlightDisplay/qmldir b/src/FlightDisplay/qmldir index 8968b79182d6038a964d9c91f9ecc8a8b11e9fd7..f29069e4677e831ff7a5c8015e8827c712ee2831 100644 --- a/src/FlightDisplay/qmldir +++ b/src/FlightDisplay/qmldir @@ -4,9 +4,9 @@ FlightDisplayView 1.0 FlightDisplayView.qml FlightDisplayViewMap 1.0 FlightDisplayViewMap.qml FlightDisplayViewVideo 1.0 FlightDisplayViewVideo.qml FlightDisplayViewWidgets 1.0 FlightDisplayViewWidgets.qml -GuidedActionsConfirm 1.0 GuidedActionsConfirm.qml +GuidedActionConfirm 1.0 GuidedActionConfirm.qml GuidedActionsController 1.0 GuidedActionsController.qml -GuidedActionsList 1.0 GuidedActionsList.qml +GuidedActionList 1.0 GuidedActionList.qml GuidedAltitudeSlider 1.0 GuidedAltitudeSlider.qml MultiVehicleList 1.0 MultiVehicleList.qml diff --git a/src/QtLocationPlugin/QGeoTiledMappingManagerEngineQGC.cpp b/src/QtLocationPlugin/QGeoTiledMappingManagerEngineQGC.cpp index 3a74c28017a86164f0d7eba6e0fac88f911b16b7..01463d078d89ca2daafaab30a430d2a7bbe33b32 100644 --- a/src/QtLocationPlugin/QGeoTiledMappingManagerEngineQGC.cpp +++ b/src/QtLocationPlugin/QGeoTiledMappingManagerEngineQGC.cpp @@ -50,11 +50,11 @@ #include #include -#if QT_VERSION < 0x050500 +#if QT_VERSION < QT_VERSION_CHECK(5, 5, 0) #include #else #include -#if QT_VERSION >= 0x050600 +#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0) #include #else #include @@ -64,7 +64,7 @@ #include #include -#if QT_VERSION >= 0x050500 +#if QT_VERSION >= QT_VERSION_CHECK(5, 5, 0) //----------------------------------------------------------------------------- QGeoTiledMapQGC::QGeoTiledMapQGC(QGeoTiledMappingManagerEngine *engine, QObject *parent) : QGeoTiledMap(engine, parent) @@ -73,7 +73,9 @@ QGeoTiledMapQGC::QGeoTiledMapQGC(QGeoTiledMappingManagerEngine *engine, QObject } #endif -#if QT_VERSION >= 0x050900 +#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0) +#define QGCGEOMAPTYPE(a,b,c,d,e,f) QGeoMapType(a,b,c,d,e,f,QByteArray("QGroundControl"), QGeoCameraCapabilities()) +#elif QT_VERSION >= QT_VERSION_CHECK(5, 9, 0) #define QGCGEOMAPTYPE(a,b,c,d,e,f) QGeoMapType(a,b,c,d,e,f,QByteArray("QGroundControl")) #else #define QGCGEOMAPTYPE(a,b,c,d,e,f) QGeoMapType(a,b,c,d,e,f) @@ -165,7 +167,7 @@ QGeoTiledMappingManagerEngineQGC::QGeoTiledMappingManagerEngineQGC(const QVarian getQGCMapEngine()->setUserAgent(parameters.value(QStringLiteral("useragent")).toString().toLatin1()); } -#if QT_VERSION >= 0x050500 +#if QT_VERSION >= QT_VERSION_CHECK(5, 5, 0) _setCache(parameters); #endif @@ -180,7 +182,7 @@ QGeoTiledMappingManagerEngineQGC::~QGeoTiledMappingManagerEngineQGC() { } -#if QT_VERSION < 0x050500 +#if QT_VERSION < QT_VERSION_CHECK(5, 5, 0) //----------------------------------------------------------------------------- QGeoMapData *QGeoTiledMappingManagerEngineQGC::createMapData() @@ -199,7 +201,7 @@ QGeoTiledMappingManagerEngineQGC::createMap() #endif -#if QT_VERSION >= 0x050500 +#if QT_VERSION >= QT_VERSION_CHECK(5, 5, 0) //----------------------------------------------------------------------------- void QGeoTiledMappingManagerEngineQGC::_setCache(const QVariantMap ¶meters) @@ -242,7 +244,7 @@ QGeoTiledMappingManagerEngineQGC::_setCache(const QVariantMap ¶meters) if(memLimit > 1024 * 1024 * 1024) memLimit = 1024 * 1024 * 1024; //-- Disable Qt's disk cache (sort of) -#if QT_VERSION >= 0x050600 +#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0) QAbstractGeoTileCache *pTileCache = new QGeoFileTileCache(cacheDir); setTileCache(pTileCache); #else diff --git a/src/QtLocationPlugin/QGeoTiledMappingManagerEngineQGC.h b/src/QtLocationPlugin/QGeoTiledMappingManagerEngineQGC.h index f3fe98aaba5487982202be636adefb231255a0ad..b434b7c6597ac6276c126109588d8e31609582bf 100644 --- a/src/QtLocationPlugin/QGeoTiledMappingManagerEngineQGC.h +++ b/src/QtLocationPlugin/QGeoTiledMappingManagerEngineQGC.h @@ -48,12 +48,12 @@ #define QGEOTILEDMAPPINGMANAGERENGINEQGC_H #include -#if QT_VERSION >= 0x050500 +#if QT_VERSION >= QT_VERSION_CHECK(5, 5, 0) #include #endif #include -#if QT_VERSION >= 0x050500 +#if QT_VERSION >= QT_VERSION_CHECK(5, 5, 0) class QGeoTiledMapQGC : public QGeoTiledMap { Q_OBJECT @@ -70,13 +70,13 @@ class QGeoTiledMappingManagerEngineQGC : public QGeoTiledMappingManagerEngine public: QGeoTiledMappingManagerEngineQGC(const QVariantMap ¶meters, QGeoServiceProvider::Error *error, QString *errorString); ~QGeoTiledMappingManagerEngineQGC(); -#if QT_VERSION < 0x050500 +#if QT_VERSION < QT_VERSION_CHECK(5, 5, 0) QGeoMapData *createMapData(); #else QGeoMap *createMap(); #endif private: -#if QT_VERSION >= 0x050500 +#if QT_VERSION >= QT_VERSION_CHECK(5, 5, 0) void _setCache(const QVariantMap ¶meters); #endif };