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
1b7cb7bc
Commit
1b7cb7bc
authored
Jun 06, 2016
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small screen fixes
parent
9e76f9f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
20 deletions
+54
-20
PX4SimpleFlightModes.qml
src/AutoPilotPlugins/PX4/PX4SimpleFlightModes.qml
+54
-20
No files found.
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
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