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
1b7cb7bc
Commit
1b7cb7bc
authored
Jun 06, 2016
by
Don Gagne
Browse files
Small screen fixes
parent
9e76f9f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/AutoPilotPlugins/PX4/PX4SimpleFlightModes.qml
View file @
1b7cb7bc
...
...
@@ -27,8 +27,8 @@ Item {
property
real
_margins
:
ScreenTools
.
defaultFontPixelHeight
/
2
readonly
property
real
_flightModeComboWidth
:
ScreenTools
.
defaultFontPixelWidth
*
2
3
readonly
property
real
_channelComboWidth
:
ScreenTools
.
defaultFontPixelWidth
*
20
readonly
property
real
_flightModeComboWidth
:
ScreenTools
.
defaultFontPixelWidth
*
1
3
readonly
property
real
_channelComboWidth
:
ScreenTools
.
defaultFontPixelWidth
*
13
QGCPalette
{
id
:
qgcPal
;
colorGroupEnabled
:
panel
.
enabled
}
...
...
@@ -80,7 +80,7 @@ Item {
QGCLabel
{
id
:
modeChannelLabel
anchors.baseline
:
modeChannelCombo
.
baseline
text
:
qsTr
(
"
Flight m
ode channel:
"
)
text
:
qsTr
(
"
M
ode channel:
"
)
}
FactComboBox
{
...
...
@@ -139,28 +139,62 @@ Item {
anchors.top
:
parent
.
top
spacing
:
ScreenTools
.
defaultFontPixelHeight
R
epeater
{
model
:
[
"
RC_MAP_RETURN_SW
"
,
"
RC_MAP_KILL_SW
"
,
"
RC_MAP_OFFB_SW
"
]
R
ow
{
spacing
:
ScreenTools
.
defaultFontPixelWidth
Row
{
spacing
:
ScreenTools
.
defaultFontPixelWidth
property
Fact
fact
:
controller
.
getParameterFact
(
-
1
,
"
RC_MAP_RETURN_SW
"
)
property
Fact
fact
:
controller
.
getParameterFact
(
-
1
,
modelData
)
QGCLabel
{
anchors.baseline
:
returnCombo
.
baseline
text
:
"
Return switch:
"
color
:
fact
.
value
==
0
?
qgcPal
.
text
:
(
controller
.
rcChannelValues
[
fact
.
value
-
1
]
>=
1500
?
"
yellow
"
:
qgcPal
.
text
)
}
QGCLabel
{
anchors.baseline
:
optCombo
.
baseline
text
:
fact
.
shortDescription
+
"
:
"
color
:
fact
.
value
==
0
?
qgcPal
.
text
:
(
controller
.
rcChannelValues
[
fact
.
value
-
1
]
>=
1500
?
"
yellow
"
:
qgcPal
.
text
)
}
FactComboBox
{
id
:
returnCombo
width
:
_channelComboWidth
fact
:
parent
.
fact
indexModel
:
false
}
}
FactComboBox
{
id
:
optCombo
width
:
_channelComboWidth
fact
:
parent
.
fact
indexModel
:
false
}
Row
{
spacing
:
ScreenTools
.
defaultFontPixelWidth
property
Fact
fact
:
controller
.
getParameterFact
(
-
1
,
"
RC_MAP_KILL_SW
"
)
QGCLabel
{
anchors.baseline
:
killCombo
.
baseline
text
:
"
Kill switch:
"
color
:
fact
.
value
==
0
?
qgcPal
.
text
:
(
controller
.
rcChannelValues
[
fact
.
value
-
1
]
>=
1500
?
"
yellow
"
:
qgcPal
.
text
)
}
FactComboBox
{
id
:
killCombo
width
:
_channelComboWidth
fact
:
parent
.
fact
indexModel
:
false
}
}
// Repeater
}
Row
{
spacing
:
ScreenTools
.
defaultFontPixelWidth
property
Fact
fact
:
controller
.
getParameterFact
(
-
1
,
"
RC_MAP_OFFB_SW
"
)
QGCLabel
{
anchors.baseline
:
offboardCombo
.
baseline
text
:
"
Offboard switch:
"
color
:
fact
.
value
==
0
?
qgcPal
.
text
:
(
controller
.
rcChannelValues
[
fact
.
value
-
1
]
>=
1500
?
"
yellow
"
:
qgcPal
.
text
)
}
FactComboBox
{
id
:
offboardCombo
width
:
_channelComboWidth
fact
:
parent
.
fact
indexModel
:
false
}
}
}
// Column
}
// Rectangle
...
...
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