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
0ed55aad
Commit
0ed55aad
authored
May 17, 2017
by
Don Gagne
Committed by
GitHub
May 17, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5166 from DonLakeFlyer/SafetyFix
Fix Safety layout
parents
424d4b0b
0fc7356a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
20 deletions
+28
-20
SafetyComponent.qml
src/AutoPilotPlugins/PX4/SafetyComponent.qml
+28
-20
No files found.
src/AutoPilotPlugins/PX4/SafetyComponent.qml
View file @
0ed55aad
...
...
@@ -29,7 +29,7 @@ SetupPage {
Item
{
width
:
Math
.
max
(
availableWidth
,
outerGrid
.
width
)
height
:
outerGrid
.
height
height
:
lastRect
.
y
+
lastRect
.
height
FactPanelController
{
id
:
controller
...
...
@@ -38,7 +38,8 @@ SetupPage {
property
real
_margins
:
ScreenTools
.
defaultFontPixelHeight
property
real
_editFieldWidth
:
ScreenTools
.
defaultFontPixelWidth
*
20
property
real
_imageWidth
:
ScreenTools
.
defaultFontPixelWidth
*
20
property
real
_imageWidth
:
ScreenTools
.
defaultFontPixelWidth
*
15
property
real
_imageHeight
:
ScreenTools
.
defaultFontPixelHeight
*
3
property
Fact
_fenceAction
:
controller
.
getParameterFact
(
-
1
,
"
GF_ACTION
"
)
property
Fact
_fenceRadius
:
controller
.
getParameterFact
(
-
1
,
"
GF_MAX_HOR_DIST
"
)
...
...
@@ -93,6 +94,7 @@ SetupPage {
}
Rectangle
{
id
:
lastRect
x
:
landModeGrid
.
x
+
outerGrid
.
x
-
_margins
y
:
landModeGrid
.
y
+
outerGrid
.
y
-
_margins
width
:
landModeGrid
.
width
+
(
_margins
*
2
)
...
...
@@ -119,13 +121,14 @@ SetupPage {
columns
:
3
Image
{
height
:
ScreenTools
.
defaultFontPixelWidth
*
6
sourceSize.height
:
height
mipmap
:
true
fillMode
:
Image
.
PreserveAspectFit
source
:
qgcPal
.
globalTheme
===
qgcPal
.
Light
?
"
/qmlimages/LowBatteryLight.svg
"
:
"
/qmlimages/LowBattery.svg
"
Layout.rowSpan
:
3
Layout.minimumWidth
:
_imageWidth
Layout.maximumWidth
:
_imageWidth
Layout.maximumHeight
:
_imageHeight
width
:
_imageWidth
height
:
_imageHeight
}
QGCLabel
{
...
...
@@ -173,13 +176,14 @@ SetupPage {
columns
:
3
Image
{
height
:
ScreenTools
.
defaultFontPixelWidth
*
6
sourceSize.height
:
height
mipmap
:
true
fillMode
:
Image
.
PreserveAspectFit
source
:
qgcPal
.
globalTheme
===
qgcPal
.
Light
?
"
/qmlimages/RCLossLight.svg
"
:
"
/qmlimages/RCLoss.svg
"
Layout.rowSpan
:
3
Layout.minimumWidth
:
_imageWidth
Layout.maximumWidth
:
_imageWidth
Layout.maximumHeight
:
_imageHeight
width
:
_imageWidth
height
:
_imageHeight
}
QGCLabel
{
...
...
@@ -218,13 +222,14 @@ SetupPage {
columns
:
3
Image
{
height
:
ScreenTools
.
defaultFontPixelWidth
*
6
sourceSize.height
:
height
mipmap
:
true
fillMode
:
Image
.
PreserveAspectFit
source
:
qgcPal
.
globalTheme
===
qgcPal
.
Light
?
"
/qmlimages/DatalinkLossLight.svg
"
:
"
/qmlimages/DatalinkLoss.svg
"
Layout.rowSpan
:
3
Layout.minimumWidth
:
_imageWidth
Layout.maximumWidth
:
_imageWidth
Layout.maximumHeight
:
_imageHeight
width
:
_imageWidth
height
:
_imageHeight
}
QGCLabel
{
...
...
@@ -263,13 +268,14 @@ SetupPage {
columns
:
3
Image
{
height
:
ScreenTools
.
defaultFontPixelWidth
*
10
sourceSize.height
:
height
mipmap
:
true
fillMode
:
Image
.
PreserveAspectFit
source
:
qgcPal
.
globalTheme
===
qgcPal
.
Light
?
"
/qmlimages/GeoFenceLight.svg
"
:
"
/qmlimages/GeoFence.svg
"
Layout.rowSpan
:
3
Layout.minimumWidth
:
_imageWidth
Layout.maximumWidth
:
_imageWidth
Layout.maximumHeight
:
_imageHeight
width
:
_imageWidth
height
:
_imageHeight
}
QGCLabel
{
...
...
@@ -326,13 +332,14 @@ SetupPage {
QGCColoredImage
{
color
:
qgcPal
.
text
height
:
ScreenTools
.
defaultFontPixelWidth
*
10
sourceSize.height
:
height
mipmap
:
true
fillMode
:
Image
.
PreserveAspectFit
source
:
controller
.
vehicle
.
fixedWing
?
"
/qmlimages/ReturnToHomeAltitude.svg
"
:
"
/qmlimages/ReturnToHomeAltitudeCopter.svg
"
Layout.rowSpan
:
7
Layout.minimumWidth
:
_imageWidth
Layout.maximumWidth
:
_imageWidth
Layout.maximumHeight
:
_imageHeight
width
:
_imageWidth
height
:
_imageHeight
}
QGCLabel
{
...
...
@@ -420,13 +427,14 @@ SetupPage {
QGCColoredImage
{
color
:
qgcPal
.
text
height
:
ScreenTools
.
defaultFontPixelWidth
*
13
sourceSize.height
:
height
mipmap
:
true
fillMode
:
Image
.
PreserveAspectFit
source
:
controller
.
vehicle
.
fixedWing
?
"
/qmlimages/LandMode.svg
"
:
"
/qmlimages/LandModeCopter.svg
"
Layout.rowSpan
:
landVelocityLabel
.
visible
?
2
:
1
Layout.minimumWidth
:
_imageWidth
width
:
_imageWidth
height
:
_imageHeight
Layout.maximumWidth
:
_imageWidth
Layout.maximumHeight
:
_imageHeight
}
QGCLabel
{
...
...
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