Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qgroundcontrol
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Valentin Platzgummer
qgroundcontrol
Commits
25408fd1
Commit
25408fd1
authored
10 years ago
by
dogmaphobic
Browse files
Options
Downloads
Patches
Plain Diff
Updating file extensions.
parent
71a346e1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/ui/QGCBaseParamWidget.cc
+3
-3
3 additions, 3 deletions
src/ui/QGCBaseParamWidget.cc
src/ui/WaypointList.cc
+3
-3
3 additions, 3 deletions
src/ui/WaypointList.cc
with
6 additions
and
6 deletions
src/ui/QGCBaseParamWidget.cc
+
3
−
3
View file @
25408fd1
...
@@ -105,12 +105,12 @@ void QGCBaseParamWidget::saveParametersToFile()
...
@@ -105,12 +105,12 @@ void QGCBaseParamWidget::saveParametersToFile()
{
{
if
(
!
mav
)
if
(
!
mav
)
return
;
return
;
QString
defaultSuffix
(
"
txt
"
);
QString
defaultSuffix
(
"
params
"
);
QString
fileName
=
QGCFileDialog
::
getSaveFileName
(
QString
fileName
=
QGCFileDialog
::
getSaveFileName
(
this
,
this
,
tr
(
"Save Parameters"
),
tr
(
"Save Parameters"
),
qgcApp
()
->
savedParameterFilesLocation
(),
qgcApp
()
->
savedParameterFilesLocation
(),
tr
(
"Parameter File (*.
txt
)"
),
tr
(
"Parameter File (*.
params
)"
),
0
,
0
,
0
,
0
,
&
defaultSuffix
,
&
defaultSuffix
,
true
);
true
);
...
@@ -131,7 +131,7 @@ void QGCBaseParamWidget::loadParametersFromFile()
...
@@ -131,7 +131,7 @@ void QGCBaseParamWidget::loadParametersFromFile()
if
(
!
mav
)
if
(
!
mav
)
return
;
return
;
QString
fileName
=
QGCFileDialog
::
getOpenFileName
(
this
,
tr
(
"Load File"
),
qgcApp
()
->
savedParameterFilesLocation
(),
tr
(
"Parameter file (*.
txt
)"
));
QString
fileName
=
QGCFileDialog
::
getOpenFileName
(
this
,
tr
(
"Load File"
),
qgcApp
()
->
savedParameterFilesLocation
(),
tr
(
"Parameter file (*.
params
)"
));
QFile
file
(
fileName
);
QFile
file
(
fileName
);
if
(
!
file
.
open
(
QIODevice
::
ReadOnly
|
QIODevice
::
Text
))
if
(
!
file
.
open
(
QIODevice
::
ReadOnly
|
QIODevice
::
Text
))
return
;
return
;
...
...
This diff is collapsed.
Click to expand it.
src/ui/WaypointList.cc
+
3
−
3
View file @
25408fd1
...
@@ -217,14 +217,14 @@ void WaypointList::setUAS(UASInterface* uas)
...
@@ -217,14 +217,14 @@ void WaypointList::setUAS(UASInterface* uas)
void
WaypointList
::
saveWaypoints
()
void
WaypointList
::
saveWaypoints
()
{
{
QString
defaultSuffix
(
"
txt
"
);
QString
defaultSuffix
(
"
waypoints
"
);
QString
fileName
=
QGCFileDialog
::
getSaveFileName
(
this
,
tr
(
"Save File"
),
"./waypoints
.txt
"
,
tr
(
"Waypoint File (*.
txt
)"
),
0
,
0
,
&
defaultSuffix
);
QString
fileName
=
QGCFileDialog
::
getSaveFileName
(
this
,
tr
(
"Save File"
),
"./
unnamed.
waypoints"
,
tr
(
"Waypoint File (*.
waypoints
)"
),
0
,
0
,
&
defaultSuffix
);
WPM
->
saveWaypoints
(
fileName
);
WPM
->
saveWaypoints
(
fileName
);
}
}
void
WaypointList
::
loadWaypoints
()
void
WaypointList
::
loadWaypoints
()
{
{
QString
fileName
=
QGCFileDialog
::
getOpenFileName
(
this
,
tr
(
"Load File"
),
"."
,
tr
(
"Waypoint File (*.
txt
)"
));
QString
fileName
=
QGCFileDialog
::
getOpenFileName
(
this
,
tr
(
"Load File"
),
"."
,
tr
(
"Waypoint File (*.
waypoints
)"
));
WPM
->
loadWaypoints
(
fileName
);
WPM
->
loadWaypoints
(
fileName
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment