@ -50,11 +50,11 @@
@@ -50,11 +50,11 @@
# include <QtLocation/private/qgeocameracapabilities_p.h>
# include <QtLocation/private/qgeomaptype_p.h>
# if QT_VERSION < 0x050500
# if QT_VERSION < QT_VERSION_CHECK(5, 5, 0)
# include <QtLocation/private/qgeotiledmapdata_p.h>
# else
# include <QtLocation/private/qgeotiledmap_p.h>
# if QT_VERSION >= 0x050600
# if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)
# include <QtLocation/private/qgeofiletilecache_p.h>
# else
# include <QtLocation/private/qgeotilecache_p.h>
@ -64,7 +64,7 @@
@@ -64,7 +64,7 @@
# include <QDir>
# include <QStandardPaths>
# 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
@@ -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
@@ -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()
@@ -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()
@@ -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 & parameters )
@ -242,7 +244,7 @@ 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