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
5678f5d5
Commit
5678f5d5
authored
Feb 28, 2015
by
Don Gagne
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1280 from DonLakeFlyer/VehicleSummary
Cleanup Vehicle Summary Qml
parents
2a4c779d
1e5929ce
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
57 additions
and
50 deletions
+57
-50
VehicleSummary.qml
src/VehicleSetup/VehicleSummary.qml
+57
-50
No files found.
src/VehicleSetup/VehicleSummary.qml
View file @
5678f5d5
...
@@ -4,6 +4,7 @@ import QtQuick.Controls.Styles 1.2
...
@@ -4,6 +4,7 @@ import QtQuick.Controls.Styles 1.2
import
QGroundControl
.
FactSystem
1.0
import
QGroundControl
.
FactSystem
1.0
import
QGroundControl
.
Palette
1.0
import
QGroundControl
.
Palette
1.0
import
QGroundControl
.
Controls
1.0
Rectangle
{
Rectangle
{
width
:
600
width
:
600
...
@@ -16,75 +17,81 @@ Rectangle {
...
@@ -16,75 +17,81 @@ Rectangle {
color
:
qgcPal
.
window
color
:
qgcPal
.
window
Flow
{
Column
{
anchors.fill
:
parent
anchors.fill
:
parent
QGCLabel
{
text
:
"
VEHICLE SUMMARY
"
font.pointSize
:
20
}
Item
{
// Just used as a spacer
height
:
20
width
:
10
}
Flow
{
width
:
parent
.
width
spacing
:
10
spacing
:
10
Repeater
{
Repeater
{
model
:
autopilot
.
components
model
:
autopilot
.
components
Button
{
// Outer summary item rectangle
Rectangle
{
readonly
property
real
titleHeight
:
30
width
:
250
width
:
250
height
:
200
height
:
200
color
:
qgcPal
.
windowShade
property
var
summaryQmlSource
:
modelData
.
summaryQmlSource
// Title bar
text
:
modelData
.
name
Rectangle
{
property
bool
setupComplete
:
modelData
.
setupComplete
style
:
ButtonStyle
{
id
:
buttonStyle
background
:
Rectangle
{
id
:
innerRect
readonly
property
real
titleHeight
:
30
width
:
parent
.
width
height
:
titleHeight
color
:
qgcPal
.
windowShadeDark
color
:
qgcPal
.
windowShadeDark
// Title text
Text
{
Text
{
id
:
titleBar
anchors.fill
:
parent
width
:
parent
.
width
color
:
qgcPal
.
buttonText
height
:
parent
.
titleHeight
font.pixelSize
:
12
text
:
modelData
.
name
.
toUpperCase
()
verticalAlignment
:
TextEdit
.
AlignVCenter
verticalAlignment
:
TextEdit
.
AlignVCenter
horizontalAlignment
:
TextEdit
.
AlignHCenter
horizontalAlignment
:
TextEdit
.
AlignHCenter
}
}
text
:
control
.
text
.
toUpperCase
()
// Setup indicator
color
:
qgcPal
.
buttonText
font.pixelSize
:
12
Rectangle
{
Rectangle
{
id
:
setupIndicator
property
bool
setupComplete
:
true
readonly
property
real
indicatorRadius
:
6
readonly
property
real
indicatorRadius
:
6
readonly
property
real
indicatorRightInset
:
5
x
:
parent
.
width
-
(
indicatorRadius
*
2
)
-
5
x
:
parent
.
width
-
(
indicatorRadius
*
2
)
-
indicatorRightInset
y
:
(
parent
.
h
eight
-
(
indicatorRadius
*
2
))
/
2
y
:
(
parent
.
titleH
eight
-
(
indicatorRadius
*
2
))
/
2
width
:
indicatorRadius
*
2
width
:
indicatorRadius
*
2
height
:
indicatorRadius
*
2
height
:
indicatorRadius
*
2
radius
:
indicatorRadius
radius
:
indicatorRadius
color
:
control
.
setupComplete
?
"
#00d932
"
:
"
red
"
color
:
modelData
.
setupComplete
?
"
#00d932
"
:
"
red
"
}
}
}
// Summary Qml
Rectangle
{
Rectangle
{
y
:
parent
.
titleHeight
width
:
parent
.
width
width
:
parent
.
width
height
:
parent
.
height
-
parent
.
titleHeight
height
:
parent
.
height
-
parent
.
titleHeight
y
:
parent
.
titleHeight
color
:
qgcPal
.
windowShade
color
:
qgcPal
.
windowShade
Loader
{
Loader
{
anchors.fill
:
parent
anchors.fill
:
parent
source
:
summaryQmlSource
source
:
modelData
.
summaryQmlSource
}
}
}
}
}
}
label
:
Item
{}
}
}
}
}
}
}
}
...
...
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