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
b0a1524d
Commit
b0a1524d
authored
Apr 20, 2019
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parent
fdfb7f03
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
AltitudeFactTextField.qml
src/FactSystem/FactControls/AltitudeFactTextField.qml
+12
-10
No files found.
src/FactSystem/FactControls/AltitudeFactTextField.qml
View file @
b0a1524d
import
QtQuick
2.3
import
QGroundControl
1.0
import
QGroundControl
.
FactSystem
1.0
FactTextField
{
unitsLabel
:
fact
?
fact
.
units
+
_altitudeModeExtraUnits
:
""
showUnits
:
true
showHelp
:
true
unitsLabel
:
fact
?
fact
.
units
:
""
extraUnitsLabel
:
fact
?
_altitudeModeExtraUnits
:
""
showUnits
:
true
showHelp
:
true
property
int
altitudeMode
:
QGroundControl
.
AltitudeModeNone
readonly
property
string
_altModeNoneExtraUnits
:
""
readonly
property
string
_altModeRelativeExtraUnits
:
qsTr
(
"
(Rel)
"
)
readonly
property
string
_altModeAbsoluteExtraUnits
:
qsTr
(
"
(AMSL)
"
)
readonly
property
string
_altModeAboveTerrainExtraUnits
:
qsTr
(
"
(Abv Terr)
"
)
readonly
property
string
_altModeTerrainFrameExtraUnits
:
qsTr
(
"
(TerrF)
"
)
readonly
property
string
_altModeRelativeExtraUnits
:
qsTr
(
"
(Rel)
"
)
readonly
property
string
_altModeAbsoluteExtraUnits
:
qsTr
(
"
(AMSL)
"
)
readonly
property
string
_altModeAboveTerrainExtraUnits
:
qsTr
(
"
(Abv Terr)
"
)
readonly
property
string
_altModeTerrainFrameExtraUnits
:
qsTr
(
"
(TerrF)
"
)
property
string
_altitudeModeExtraUnits
:
_altModeRelativeExtraUnits
property
string
_altitudeModeExtraUnits
:
_altModeNoneExtraUnits
onAltitudeModeChanged
:
updateAltitudeModeExtraUnits
()
function
updateAltitudeModeExtraUnits
()
{
if
(
altitudeMode
===
QGroundControl
.
AltitudeModeNone
)
{
...
...
@@ -32,6 +36,4 @@ FactTextField {
_altitudeModeExtraUnits
=
""
}
}
onAltitudeModeChanged
:
updateAltitudeModeExtraUnits
()
}
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