Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
cfd54d02
Commit
cfd54d02
authored
Mar 17, 2016
by
dogmaphobic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial Qt 5.6 build support.
parent
7aeb8a5f
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
8 deletions
+20
-8
QGCCommon.pri
QGCCommon.pri
+4
-0
qgroundcontrol.pro
qgroundcontrol.pro
+3
-0
FlightMap.qml
src/FlightMap/FlightMap.qml
+2
-1
QGCLocationPlugin.pri
src/QtLocationPlugin/QGCLocationPlugin.pri
+0
-6
QGeoTileFetcherQGC.h
src/QtLocationPlugin/QGeoTileFetcherQGC.h
+0
-1
QGeoTiledMappingManagerEngineQGC.cpp
src/QtLocationPlugin/QGeoTiledMappingManagerEngineQGC.cpp
+11
-0
No files found.
QGCCommon.pri
View file @
cfd54d02
...
@@ -60,7 +60,11 @@ linux {
...
@@ -60,7 +60,11 @@ linux {
DEFINES += __macos__
DEFINES += __macos__
CONFIG += x86_64
CONFIG += x86_64
CONFIG -= x86
CONFIG -= x86
equals(QT_MAJOR_VERSION, 5) | greaterThan(QT_MINOR_VERSION, 5) {
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.7
} else {
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.6
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.6
}
QMAKE_MAC_SDK = macosx10.11
QMAKE_MAC_SDK = macosx10.11
QMAKE_CXXFLAGS += -fvisibility=hidden
QMAKE_CXXFLAGS += -fvisibility=hidden
} else {
} else {
...
...
qgroundcontrol.pro
View file @
cfd54d02
...
@@ -103,6 +103,9 @@ MacBuild {
...
@@ -103,6 +103,9 @@ MacBuild {
QMAKE_INFO_PLIST
=
Custom
-
Info
.
plist
QMAKE_INFO_PLIST
=
Custom
-
Info
.
plist
ICON
=
$$
{
BASEDIR
}
/
resources
/
icons
/
macx
.
icns
ICON
=
$$
{
BASEDIR
}
/
resources
/
icons
/
macx
.
icns
OTHER_FILES
+=
Custom
-
Info
.
plist
OTHER_FILES
+=
Custom
-
Info
.
plist
equals
(
QT_MAJOR_VERSION
,
5
)
|
greaterThan
(
QT_MINOR_VERSION
,
5
)
{
LIBS
+=
-
framework
ApplicationServices
}
}
}
iOSBuild
{
iOSBuild
{
...
...
src/FlightMap/FlightMap.qml
View file @
cfd54d02
...
@@ -53,7 +53,8 @@ Map {
...
@@ -53,7 +53,8 @@ Map {
zoomLevel
:
18
zoomLevel
:
18
center
:
QGroundControl
.
lastKnownHomePosition
center
:
QGroundControl
.
lastKnownHomePosition
gesture.flickDeceleration
:
3000
gesture.flickDeceleration
:
3000
gesture.activeGestures
:
MapGestureArea
.
ZoomGesture
|
MapGestureArea
.
PanGesture
|
MapGestureArea
.
FlickGesture
// This no longer exists in Qt 5.6. The options below also happen the be the default anyway.
//gesture.activeGestures: MapGestureArea.ZoomGesture | MapGestureArea.PanGesture | MapGestureArea.FlickGesture
plugin
:
Plugin
{
name
:
"
QGroundControl
"
}
plugin
:
Plugin
{
name
:
"
QGroundControl
"
}
...
...
src/QtLocationPlugin/QGCLocationPlugin.pri
View file @
cfd54d02
...
@@ -2,18 +2,12 @@
...
@@ -2,18 +2,12 @@
QT += location-private positioning-private network
QT += location-private positioning-private network
contains(QT_VERSION, 5.5.1) {
contains(QT_VERSION, 5.5.1) {
message(Using Local QtLocation headers for Qt 5.5.1)
message(Using Local QtLocation headers for Qt 5.5.1)
INCLUDEPATH += \
INCLUDEPATH += \
$$PWD/qtlocation/include \
$$PWD/qtlocation/include \
} else {
} else {
message(Using Default QtLocation headers)
message(Using Default QtLocation headers)
INCLUDEPATH += $$QT.location.includes
INCLUDEPATH += $$QT.location.includes
}
}
HEADERS += \
HEADERS += \
...
...
src/QtLocationPlugin/QGeoTileFetcherQGC.h
View file @
cfd54d02
...
@@ -48,7 +48,6 @@
...
@@ -48,7 +48,6 @@
#define QGEOTILEFETCHERQGC_H
#define QGEOTILEFETCHERQGC_H
#include <QtLocation/private/qgeotilefetcher_p.h>
#include <QtLocation/private/qgeotilefetcher_p.h>
#include <QtLocation/private/qgeotilecache_p.h>
#include "QGCMapUrlEngine.h"
#include "QGCMapUrlEngine.h"
class
QGeoTiledMappingManagerEngine
;
class
QGeoTiledMappingManagerEngine
;
...
...
src/QtLocationPlugin/QGeoTiledMappingManagerEngineQGC.cpp
View file @
cfd54d02
...
@@ -54,7 +54,13 @@
...
@@ -54,7 +54,13 @@
#include <QtLocation/private/qgeotiledmapdata_p.h>
#include <QtLocation/private/qgeotiledmapdata_p.h>
#else
#else
#include <QtLocation/private/qgeotiledmap_p.h>
#include <QtLocation/private/qgeotiledmap_p.h>
#if QT_VERSION >= 0x050600
#include <QtLocation/private/qgeofiletilecache_p.h>
#else
#include <QtLocation/private/qgeotilecache_p.h>
#endif
#endif
#endif
#include <QDir>
#include <QDir>
#include <QStandardPaths>
#include <QStandardPaths>
...
@@ -225,7 +231,12 @@ QGeoTiledMappingManagerEngineQGC::_setCache(const QVariantMap ¶meters)
...
@@ -225,7 +231,12 @@ QGeoTiledMappingManagerEngineQGC::_setCache(const QVariantMap ¶meters)
if
(
memLimit
<
1024
*
1024
)
if
(
memLimit
<
1024
*
1024
)
memLimit
=
1024
*
1024
;
memLimit
=
1024
*
1024
;
//-- Disable Qt's disk cache (set memory cache otherwise Qtlocation won't work)
//-- Disable Qt's disk cache (set memory cache otherwise Qtlocation won't work)
#if QT_VERSION >= 0x050600
QAbstractGeoTileCache
*
pTileCache
=
new
QGeoFileTileCache
(
cacheDir
);
setTileCache
(
pTileCache
);
#else
QGeoTileCache
*
pTileCache
=
createTileCacheWithDir
(
cacheDir
);
QGeoTileCache
*
pTileCache
=
createTileCacheWithDir
(
cacheDir
);
#endif
if
(
pTileCache
)
if
(
pTileCache
)
{
{
//-- We're basically telling it to use 100k of disk for cache. It doesn't like
//-- We're basically telling it to use 100k of disk for cache. It doesn't like
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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