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
8f2e16fb
Unverified
Commit
8f2e16fb
authored
Mar 15, 2018
by
Don Gagne
Committed by
GitHub
Mar 15, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6221 from DonLakeFlyer/KMLExtensions
Fix KML file extensions on mobile
parents
aad551c2
5429bd15
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
QGCMapPolygonVisuals.qml
src/MissionManager/QGCMapPolygonVisuals.qml
+3
-1
PlanView.qml
src/PlanView/PlanView.qml
+6
-2
No files found.
src/MissionManager/QGCMapPolygonVisuals.qml
View file @
8f2e16fb
...
...
@@ -32,6 +32,7 @@ Item {
property
int
borderWidth
:
0
property
color
borderColor
:
"
black
"
property
var
_gqcView
:
ggcView
property
var
_polygonComponent
property
var
_dragHandlesComponent
property
var
_splitHandlesComponent
...
...
@@ -172,11 +173,12 @@ Item {
QGCFileDialog
{
id
:
kmlLoadDialog
qgcView
:
_
root
.
qgcView
qgcView
:
_qgcView
folder
:
QGroundControl
.
settingsManager
.
appSettings
.
missionSavePath
title
:
qsTr
(
"
Select KML File
"
)
selectExisting
:
true
nameFilters
:
[
qsTr
(
"
KML files (*.kml)
"
)
]
fileExtension
:
QGroundControl
.
settingsManager
.
appSettings
.
kmlFileExtension
onAcceptedForLoad
:
{
...
...
src/PlanView/PlanView.qml
View file @
8f2e16fb
...
...
@@ -174,6 +174,8 @@ QGCView {
fileDialog
.
title
=
qsTr
(
"
Select Plan File
"
)
fileDialog
.
selectExisting
=
true
fileDialog
.
nameFilters
=
masterController
.
loadNameFilters
fileDialog
.
fileExtension
=
QGroundControl
.
settingsManager
.
appSettings
.
planFileExtension
fileDialog
.
fileExtension2
=
QGroundControl
.
settingsManager
.
appSettings
.
missionFileExtension
fileDialog
.
openForLoad
()
}
...
...
@@ -182,6 +184,8 @@ QGCView {
fileDialog
.
plan
=
true
fileDialog
.
selectExisting
=
false
fileDialog
.
nameFilters
=
masterController
.
saveNameFilters
fileDialog
.
fileExtension
=
QGroundControl
.
settingsManager
.
appSettings
.
planFileExtension
fileDialog
.
fileExtension2
=
QGroundControl
.
settingsManager
.
appSettings
.
missionFileExtension
fileDialog
.
openForSave
()
}
...
...
@@ -194,6 +198,8 @@ QGCView {
fileDialog
.
plan
=
false
fileDialog
.
selectExisting
=
false
fileDialog
.
nameFilters
=
masterController
.
saveKmlFilters
fileDialog
.
fileExtension
=
QGroundControl
.
settingsManager
.
appSettings
.
kmlFileExtension
fileDialog
.
fileExtension2
=
""
fileDialog
.
openForSave
()
}
}
...
...
@@ -240,8 +246,6 @@ QGCView {
qgcView
:
_qgcView
property
var
plan
:
true
folder
:
QGroundControl
.
settingsManager
.
appSettings
.
missionSavePath
fileExtension
:
QGroundControl
.
settingsManager
.
appSettings
.
planFileExtension
fileExtension2
:
QGroundControl
.
settingsManager
.
appSettings
.
missionFileExtension
onAcceptedForSave
:
{
plan
?
masterController
.
saveToFile
(
file
)
:
masterController
.
saveToKml
(
file
)
...
...
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