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
f4b237b7
Commit
f4b237b7
authored
Dec 14, 2015
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Flickable works, better real estate usage
parent
fc853305
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
111 additions
and
99 deletions
+111
-99
APMFlightModesComponent.qml
src/AutoPilotPlugins/APM/APMFlightModesComponent.qml
+111
-99
No files found.
src/AutoPilotPlugins/APM/APMFlightModesComponent.qml
View file @
f4b237b7
...
...
@@ -35,6 +35,8 @@ QGCView {
id
:
rootQGCView
viewPanel
:
panel
property
real
_margins
:
ScreenTools
.
defaultFontPixelHeight
QGCPalette
{
id
:
qgcPal
;
colorGroupEnabled
:
panel
.
enabled
}
APMFlightModesComponentController
{
...
...
@@ -48,18 +50,22 @@ QGCView {
Flickable
{
anchors.fill
:
parent
Column
{
width
:
parent
.
width
spacing
:
ScreenTools
.
defaultFontPixelH
eight
clip
:
true
boundsBehavior
:
Flickable
.
StopAtBounds
flickableDirection
:
Flickable
.
VerticalFlick
contentHeight
:
flightModeSettings
.
y
+
flightModeSettings
.
h
eight
QGCLabel
{
id
:
flightModeLabel
text
:
"
Channel 5 Flight Mode Settings
"
font.weight
:
Font
.
DemiBold
}
Rectangle
{
width
:
parent
.
width
id
:
flightModeSettings
anchors.topMargin
:
_margins
anchors.top
:
flightModeLabel
.
bottom
width
:
flightModeColumn
.
width
+
(
_margins
*
2
)
height
:
flightModeColumn
.
height
+
ScreenTools
.
defaultFontPixelHeight
color
:
qgcPal
.
windowShade
...
...
@@ -67,7 +73,7 @@ QGCView {
id
:
flightModeColumn
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
//
anchors.right: parent.right
anchors.top
:
parent
.
top
spacing
:
ScreenTools
.
defaultFontPixelHeight
...
...
@@ -104,12 +110,20 @@ QGCView {
}
// Rectangle - Flight Modes
QGCLabel
{
id
:
channelOptionsLabel
anchors.leftMargin
:
_margins
anchors.top
:
parent
.
top
anchors.left
:
flightModeSettings
.
right
text
:
"
Channel Options
"
font.weight
:
Font
.
DemiBold
}
Rectangle
{
width
:
parent
.
width
id
:
channelOptionsSettings
anchors.topMargin
:
_margins
anchors.top
:
channelOptionsLabel
.
bottom
anchors.left
:
channelOptionsLabel
.
left
width
:
channelOptColumn
.
width
+
(
_margins
*
2
)
height
:
channelOptColumn
.
height
+
ScreenTools
.
defaultFontPixelHeight
color
:
qgcPal
.
windowShade
...
...
@@ -117,7 +131,6 @@ QGCView {
id
:
channelOptColumn
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
anchors.top
:
parent
.
top
spacing
:
ScreenTools
.
defaultFontPixelHeight
...
...
@@ -147,7 +160,6 @@ QGCView {
}
// Repeater -- Channel options
}
// Column - Channel options
}
// Rectangle - Channel options
}
// Column
}
// FLickable
}
// QGCViewPanel
}
// QGCView
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