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
fdf1c814
Commit
fdf1c814
authored
Dec 14, 2015
by
Don Gagne
Browse files
Fix Flickable, better real estate usage
parent
9d708e08
Changes
1
Show whitespace changes
Inline
Side-by-side
src/AutoPilotPlugins/APM/APMSafetyComponentCopter.qml
View file @
fdf1c814
...
...
@@ -40,7 +40,7 @@ QGCView {
QGCPalette
{
id
:
palette
;
colorGroupEnabled
:
enabled
}
property
Fact
_failsafeBattEnable
d
:
controller
.
getParameterFact
(
-
1
,
"
FS_BATT_ENABLE
"
)
property
Fact
_failsafeBattEnable
:
controller
.
getParameterFact
(
-
1
,
"
FS_BATT_ENABLE
"
)
property
Fact
_failsafeBattMah
:
controller
.
getParameterFact
(
-
1
,
"
FS_BATT_MAH
"
)
property
Fact
_failsafeBattVoltage
:
controller
.
getParameterFact
(
-
1
,
"
FS_BATT_VOLTAGE
"
)
property
Fact
_failsafeThrEnable
:
controller
.
getParameterFact
(
-
1
,
"
FS_THR_ENABLE
"
)
...
...
@@ -72,6 +72,7 @@ QGCView {
clip
:
true
anchors.fill
:
parent
boundsBehavior
:
Flickable
.
StopAtBounds
contentHeight
:
rtlSettings
.
y
+
rtlSettings
.
height
flickableDirection
:
Flickable
.
VerticalFlick
QGCLabel
{
...
...
@@ -83,10 +84,11 @@ QGCView {
Rectangle
{
id
:
failsafeSettings
anchors.topMargin
:
_margins
/
2
anchors.rightMargin
:
_margins
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
anchors.top
:
failsafeLabel
.
bottom
height
:
fenceAltMaxField
.
y
+
fenceAltMaxField
.
height
+
_margins
width
:
throttleEnableCombo
.
x
+
throttleEnableCombo
.
x
+
_margins
height
:
mahField
.
y
+
mahField
.
height
+
_margins
color
:
palette
.
windowShade
QGCLabel
{
...
...
@@ -141,9 +143,9 @@ QGCView {
anchors.top
:
throttlePWMField
.
bottom
width
:
voltageField
.
width
model
:
[
"
Disabled
"
,
"
Land
"
,
"
Return to Launch
"
]
currentIndex
:
_failsafeBattEnable
d
.
value
currentIndex
:
_failsafeBattEnable
.
value
onActivated
:
_failsafeBattEnable
d
.
value
=
index
onActivated
:
_failsafeBattEnable
.
value
=
index
}
QGCCheckBox
{
...
...
@@ -190,10 +192,9 @@ QGCView {
QGCLabel
{
id
:
geoFenceLabel
anchors.topMargin
:
_margins
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
anchors.top
:
failsafeSettings
.
bottom
anchors.leftMargin
:
_margins
anchors.left
:
failsafeSettings
.
right
anchors.top
:
parent
.
top
text
:
"
GeoFence
"
font.weight
:
Font
.
DemiBold
}
...
...
@@ -201,10 +202,10 @@ QGCView {
Rectangle
{
id
:
geoFenceSettings
anchors.topMargin
:
_margins
/
2
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
anchors.left
:
geoFenceLabel
.
left
anchors.top
:
geoFenceLabel
.
bottom
height
:
fenceAltMaxField
.
y
+
fenceAltMaxField
.
height
+
_margins
anchors.bottom
:
failsafeSettings
.
bottom
width
:
fenceAltMaxField
.
x
+
fenceAltMaxField
.
width
+
_margins
color
:
palette
.
windowShade
QGCCheckBox
{
...
...
@@ -324,10 +325,11 @@ QGCView {
}
Rectangle
{
id
:
rtlSettings
anchors.topMargin
:
_margins
/
2
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
anchors.top
:
rtlLabel
.
bottom
width
:
rltAltFinalField
.
x
+
rltAltFinalField
.
width
+
_margins
height
:
rltAltFinalField
.
y
+
rltAltFinalField
.
height
+
_margins
color
:
palette
.
windowShade
...
...
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