Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
a5c6b0da
Unverified
Commit
a5c6b0da
authored
Dec 25, 2017
by
Don Gagne
Committed by
GitHub
Dec 25, 2017
Browse files
Merge pull request #5900 from patrickelectric/corrections
Code correction, Qt5.10 compatibility
parents
5922c953
dff51b8d
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/FlightDisplay/qmldir
View file @
a5c6b0da
...
...
@@ -4,9 +4,9 @@ FlightDisplayView 1.0 FlightDisplayView.qml
FlightDisplayViewMap 1.0 FlightDisplayViewMap.qml
FlightDisplayViewVideo 1.0 FlightDisplayViewVideo.qml
FlightDisplayViewWidgets 1.0 FlightDisplayViewWidgets.qml
GuidedAction
s
Confirm 1.0 GuidedAction
s
Confirm.qml
GuidedActionConfirm
1.0 GuidedActionConfirm.qml
GuidedActionsController 1.0 GuidedActionsController.qml
GuidedAction
s
List 1.0 GuidedAction
s
List.qml
GuidedActionList
1.0 GuidedActionList.qml
GuidedAltitudeSlider 1.0 GuidedAltitudeSlider.qml
MultiVehicleList 1.0 MultiVehicleList.qml
src/QtLocationPlugin/QGeoTiledMappingManagerEngineQGC.cpp
View file @
a5c6b0da
...
...
@@ -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 @@
#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
}
#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
&
parameters
)
...
...
@@ -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
...
...
src/QtLocationPlugin/QGeoTiledMappingManagerEngineQGC.h
View file @
a5c6b0da
...
...
@@ -48,12 +48,12 @@
#define QGEOTILEDMAPPINGMANAGERENGINEQGC_H
#include
<QtLocation/QGeoServiceProvider>
#if QT_VERSION >=
0x050500
#if QT_VERSION >=
QT_VERSION_CHECK(5, 5, 0)
#include
<QtLocation/private/qgeotiledmap_p.h>
#endif
#include
<QtLocation/private/qgeotiledmappingmanagerengine_p.h>
#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
&
parameters
,
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
&
parameters
);
#endif
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment