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
52a18d72
Commit
52a18d72
authored
Jun 06, 2016
by
Don Gagne
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3493 from DonLakeFlyer/GeneralSettingSizing
General setting sizing
parents
d009c117
fd091a62
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
72 additions
and
60 deletions
+72
-60
QGroundControlQmlGlobal.cc
src/QmlControls/QGroundControlQmlGlobal.cc
+2
-2
GeneralSettings.qml
src/ui/preferences/GeneralSettings.qml
+70
-58
No files found.
src/QmlControls/QGroundControlQmlGlobal.cc
View file @
52a18d72
...
...
@@ -231,7 +231,7 @@ Fact* QGroundControlQmlGlobal::offlineEditingFirmwareType(void)
_offlineEditingFirmwareTypeFact
=
new
SettingsFact
(
QString
(),
"OfflineEditingFirmwareType"
,
FactMetaData
::
valueTypeUint32
,
(
uint32_t
)
MAV_AUTOPILOT_ARDUPILOTMEGA
);
_offlineEditingFirmwareTypeMetaData
=
new
FactMetaData
(
FactMetaData
::
valueTypeUint32
);
enumStrings
<<
"ArduPilot F
light Stack"
<<
"PX4 Flight Stack"
<<
"Mavlink Generic Flight Stack
"
;
enumStrings
<<
"ArduPilot F
irmware"
<<
"PX4 Firmware"
<<
"Mavlink Generic Firmware
"
;
enumValues
<<
QVariant
::
fromValue
((
uint32_t
)
MAV_AUTOPILOT_ARDUPILOTMEGA
)
<<
QVariant
::
fromValue
((
uint32_t
)
MAV_AUTOPILOT_PX4
)
<<
QVariant
::
fromValue
((
uint32_t
)
MAV_AUTOPILOT_GENERIC
);
_offlineEditingFirmwareTypeMetaData
->
setEnumInfo
(
enumStrings
,
enumValues
);
...
...
@@ -270,7 +270,7 @@ Fact* QGroundControlQmlGlobal::speedUnits(void)
_speedUnitsFact
=
new
SettingsFact
(
QString
(),
"SpeedUnits"
,
FactMetaData
::
valueTypeUint32
,
SpeedUnitsMetersPerSecond
);
_speedUnitsMetaData
=
new
FactMetaData
(
FactMetaData
::
valueTypeUint32
);
enumStrings
<<
"Feet
per second"
<<
"Meters per second"
<<
"Miles per hour"
<<
"Kilometers per
hour"
<<
"Knots"
;
enumStrings
<<
"Feet
/second"
<<
"Meters/second"
<<
"Miles/hour"
<<
"Kilometers/
hour"
<<
"Knots"
;
enumValues
<<
QVariant
::
fromValue
((
uint32_t
)
SpeedUnitsFeetPerSecond
)
<<
QVariant
::
fromValue
((
uint32_t
)
SpeedUnitsMetersPerSecond
)
<<
QVariant
::
fromValue
((
uint32_t
)
SpeedUnitsMilesPerHour
)
<<
QVariant
::
fromValue
((
uint32_t
)
SpeedUnitsKilometersPerHour
)
<<
QVariant
::
fromValue
((
uint32_t
)
SpeedUnitsKnots
);
_speedUnitsMetaData
->
setEnumInfo
(
enumStrings
,
enumValues
);
...
...
src/ui/preferences/GeneralSettings.qml
View file @
52a18d72
This diff is collapsed.
Click to expand it.
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