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
b413f7f9
Commit
b413f7f9
authored
Apr 28, 2019
by
Gus Grubba
Browse files
Fix old dialog usage
Fix QML warnings
parent
a3b3e582
Changes
1
Show whitespace changes
Inline
Side-by-side
src/PlanView/SurveyItemEditor.qml
View file @
b413f7f9
...
...
@@ -91,10 +91,10 @@ Rectangle {
if
(
index
==
_indexCustom
)
{
missionItem
.
clearCurrentPreset
()
}
else
if
(
index
==
_indexCreate
)
{
rootQgcVie
w
.
showDialog
(
savePresetDialog
,
qsTr
(
"
Save Preset
"
),
rootQgcVie
w
.
showDialogDefaultWidth
,
StandardButton
.
Save
|
StandardButton
.
Cancel
)
mainWindo
w
.
showDialog
(
savePresetDialog
,
qsTr
(
"
Save Preset
"
),
mainWindo
w
.
showDialogDefaultWidth
,
StandardButton
.
Save
|
StandardButton
.
Cancel
)
}
else
if
(
index
==
_indexDelete
)
{
if
(
missionItem
.
builtInPreset
)
{
rootQgcVie
w
.
showMessage
(
qsTr
(
"
Delete Preset
"
),
qsTr
(
"
This preset cannot be deleted.
"
),
StandardButton
.
Ok
)
mainWindo
w
.
showMessage
(
qsTr
(
"
Delete Preset
"
),
qsTr
(
"
This preset cannot be deleted.
"
),
StandardButton
.
Ok
)
}
else
{
missionItem
.
deleteCurrentPreset
()
}
...
...
@@ -262,7 +262,7 @@ Rectangle {
FactCheckBox
{
text
:
qsTr
(
"
Fly alternate transects
"
)
fact
:
missionItem
.
flyAlternateTransects
visible
:
_vehicle
.
fixedWing
||
_vehicle
.
vtol
visible
:
_vehicle
?
(
_vehicle
.
fixedWing
||
_vehicle
.
vtol
)
:
false
}
QGCCheckBox
{
...
...
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