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
13d939d6
Commit
13d939d6
authored
Apr 27, 2019
by
Gus Grubba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't allow map view to go invisible
Handle connection to non initialized target
parent
2d358906
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
FlightDisplayViewMap.qml
src/FlightDisplay/FlightDisplayViewMap.qml
+9
-2
No files found.
src/FlightDisplay/FlightDisplayViewMap.qml
View file @
13d939d6
...
...
@@ -32,6 +32,11 @@ FlightMap {
allowVehicleLocationCenter
:
!
_keepVehicleCentered
planView
:
false
onVisibleChanged
:
{
// I don't know what is causing this to become invisible when a connection is dropped
if
(
!
visible
)
visible
=
true
}
property
alias
scaleState
:
mapScale
.
state
// The following properties must be set by the consumer
...
...
@@ -39,7 +44,7 @@ FlightMap {
property
var
flightWidgets
property
var
rightPanelWidth
property
var
multiVehicleView
///< true: multi-vehicle view, false: single vehicle view
property
var
missionController
property
var
missionController
:
null
property
rect
centerViewport
:
Qt
.
rect
(
0
,
0
,
width
,
height
)
...
...
@@ -161,7 +166,9 @@ FlightMap {
QGCMapPalette
{
id
:
mapPal
;
lightColors
:
isSatelliteMap
}
Connections
{
target
:
missionController
enabled
:
missionController
!==
null
target
:
missionController
ignoreUnknownSignals
:
true
onNewItemsFromVehicle
:
{
var
visualItems
=
missionController
.
visualItems
if
(
visualItems
&&
visualItems
.
count
!==
1
)
{
...
...
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