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
3ce99053
Commit
3ce99053
authored
Apr 05, 2017
by
DonLakeFlyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix up ordering
parent
7bf0dc2d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
15 deletions
+22
-15
FlightDisplayViewMap.qml
src/FlightDisplay/FlightDisplayViewMap.qml
+7
-8
MissionLineView.qml
src/FlightMap/MapItems/MissionLineView.qml
+1
-1
QGroundControlQmlGlobal.h
src/QmlControls/QGroundControlQmlGlobal.h
+14
-6
No files found.
src/FlightDisplay/FlightDisplayViewMap.qml
View file @
3ce99053
...
...
@@ -46,7 +46,6 @@ FlightMap {
property
bool
_disableVehicleTracking
:
false
property
bool
_keepVehicleCentered
:
_mainIsMap
?
false
:
true
// Track last known map position and zoom from Fly view in settings
onZoomLevelChanged
:
QGroundControl
.
flightMapZoom
=
zoomLevel
onCenterChanged
:
QGroundControl
.
flightMapPosition
=
center
...
...
@@ -209,11 +208,11 @@ FlightMap {
// Add trajectory points to the map
MapItemView
{
model
:
_mainIsMap
?
_activeVehicle
?
_activeVehicle
.
trajectoryPoints
:
0
:
0
delegate
:
MapPolyline
{
delegate
:
MapPolyline
{
line.width
:
3
line.color
:
"
red
"
z
:
QGroundControl
.
zOrder
MapItems
-
2
z
:
QGroundControl
.
zOrder
TrajectoryLines
path
:
[
object
.
coordinate1
,
object
.
coordinate2
,
...
...
@@ -224,13 +223,13 @@ FlightMap {
// Add the vehicles to the map
MapItemView
{
model
:
QGroundControl
.
multiVehicleManager
.
vehicles
delegate
:
VehicleMapItem
{
delegate
:
VehicleMapItem
{
vehicle
:
object
coordinate
:
object
.
coordinate
isSatellite
:
flightMap
.
isSatelliteMap
size
:
_mainIsMap
?
ScreenTools
.
defaultFontPixelHeight
*
3
:
ScreenTools
.
defaultFontPixelHeight
z
:
QGroundControl
.
zOrder
MapItems
-
1
z
:
QGroundControl
.
zOrder
Vehicles
}
}
...
...
@@ -246,7 +245,7 @@ FlightMap {
// Add lines between waypoints
MissionLineView
{
model
:
_mainIsMap
?
missionController
.
waypointLines
:
0
model
:
_mainIsMap
?
missionController
.
waypointLines
:
0
}
GeoFenceMapVisuals
{
...
...
src/FlightMap/MapItems/MissionLineView.qml
View file @
3ce99053
...
...
@@ -24,7 +24,7 @@ MapItemView {
delegate
:
MapPolyline
{
line.width
:
3
line.color
:
"
#be781c
"
// Hack, can't get palette to work in here
z
:
QGroundControl
.
zOrder
MapItems
-
1
// Under item indicator
s
z
:
QGroundControl
.
zOrder
WaypointLine
s
path
:
[
object
.
coordinate1
,
...
...
src/QmlControls/QGroundControlQmlGlobal.h
View file @
3ce99053
...
...
@@ -51,9 +51,13 @@ public:
Q_PROPERTY
(
int
supportedFirmwareCount
READ
supportedFirmwareCount
CONSTANT
)
Q_PROPERTY
(
qreal
zOrderTopMost
READ
zOrderTopMost
CONSTANT
)
///< z order for top most items, toolbar, main window sub view
Q_PROPERTY
(
qreal
zOrderWidgets
READ
zOrderWidgets
CONSTANT
)
///< z order value to widgets, for example: zoom controls, hud widgetss
Q_PROPERTY
(
qreal
zOrderMapItems
READ
zOrderMapItems
CONSTANT
)
///< z order value for map items, for example: mission item indicators
Q_PROPERTY
(
qreal
zOrderTopMost
READ
zOrderTopMost
CONSTANT
)
///< z order for top most items, toolbar, main window sub view
Q_PROPERTY
(
qreal
zOrderWidgets
READ
zOrderWidgets
CONSTANT
)
///< z order value to widgets, for example: zoom controls, hud widgetss
Q_PROPERTY
(
qreal
zOrderMapItems
READ
zOrderMapItems
CONSTANT
)
Q_PROPERTY
(
qreal
zOrderVehicles
READ
zOrderVehicles
CONSTANT
)
Q_PROPERTY
(
qreal
zOrderWaypointIndicators
READ
zOrderWaypointIndicators
CONSTANT
)
Q_PROPERTY
(
qreal
zOrderTrajectoryLines
READ
zOrderTrajectoryLines
CONSTANT
)
Q_PROPERTY
(
qreal
zOrderWaypointLines
READ
zOrderWaypointLines
CONSTANT
)
//-------------------------------------------------------------------------
// MavLink Protocol
...
...
@@ -135,9 +139,13 @@ public:
static
QGeoCoordinate
flightMapPosition
();
static
double
flightMapZoom
();
qreal
zOrderTopMost
()
{
return
1000
;
}
qreal
zOrderWidgets
()
{
return
100
;
}
qreal
zOrderMapItems
()
{
return
50
;
}
qreal
zOrderTopMost
()
{
return
1000
;
}
qreal
zOrderWidgets
()
{
return
100
;
}
qreal
zOrderMapItems
()
{
return
50
;
}
qreal
zOrderWaypointIndicators
()
{
return
50
;
}
qreal
zOrderVehicles
()
{
return
49
;
}
qreal
zOrderTrajectoryLines
()
{
return
48
;
}
qreal
zOrderWaypointLines
()
{
return
47
;
}
bool
isVersionCheckEnabled
()
{
return
_toolbox
->
mavlinkProtocol
()
->
versionCheckEnabled
();
}
int
mavlinkSystemID
()
{
return
_toolbox
->
mavlinkProtocol
()
->
getSystemId
();
}
...
...
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