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
52c71413
Commit
52c71413
authored
Jun 13, 2017
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More work on mission end dialog
parent
d67b1830
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
7 deletions
+18
-7
FlightDisplayView.qml
src/FlightDisplay/FlightDisplayView.qml
+18
-7
No files found.
src/FlightDisplay/FlightDisplayView.qml
View file @
52c71413
...
...
@@ -148,7 +148,10 @@ QGCView {
}
}
else
{
if
(
promptForMissionRemove
&&
(
_missionController
.
containsItems
||
_geoFenceController
.
containsItems
||
_rallyPointController
.
containsItems
))
{
root
.
showDialog
(
missionCompleteDialogComponent
,
qsTr
(
"
Flight Plan complete
"
),
showDialogDefaultWidth
,
StandardButton
.
Close
)
// ArduPilot has a strange bug which prevents mission clear from working at certain times, so we can't show this dialog
if
(
!
_activeVehicle
.
apmFirmware
)
{
root
.
showDialog
(
missionCompleteDialogComponent
,
qsTr
(
"
Flight Plan complete
"
),
showDialogDefaultWidth
,
StandardButton
.
Close
)
}
}
promptForMissionRemove
=
false
}
...
...
@@ -168,7 +171,7 @@ QGCView {
anchors.fill
:
parent
contentHeight
:
column
.
height
Column
{
Column
Layout
{
id
:
column
anchors.margins
:
_margins
anchors.left
:
parent
.
left
...
...
@@ -176,19 +179,27 @@ QGCView {
spacing
:
ScreenTools
.
defaultFontPixelHeight
QGCLabel
{
text
:
qsTr
(
"
%1 Images Taken
"
).
arg
(
_activeVehicle
.
cameraTriggerPoints
.
count
)
anchors.horizontalCenter
:
parent
.
horizontalCenter
visible
:
_activeVehicle
.
cameraTriggerPoints
.
count
!=
0
Layout.fillWidth
:
true
text
:
qsTr
(
"
%1 Images Taken
"
).
arg
(
_activeVehicle
.
cameraTriggerPoints
.
count
)
horizontalAlignment
:
Text
.
AlignHCenter
visible
:
_activeVehicle
.
cameraTriggerPoints
.
count
!=
0
}
QGCButton
{
text
:
qsTr
(
"
Remove plan from vehicle
"
)
anchors.horizontalCenter
:
parent
.
horizontalCenter
Layout.fillWidth
:
true
text
:
qsTr
(
"
Remove plan from vehicle
"
)
onClicked
:
{
_planMasterController
.
removeAllFromVehicle
()
hideDialog
()
}
}
QGCButton
{
Layout.fillWidth
:
true
text
:
qsTr
(
"
Leave plan on vehicle
"
)
anchors.horizontalCenter
:
parent
.
horizontalCenter
onClicked
:
hideDialog
()
}
}
}
}
...
...
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