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
8a9f0c1a
Commit
8a9f0c1a
authored
Oct 27, 2015
by
dogmaphobic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Controls work better aesthetically when centered on the screen.
parent
fe60f712
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
31 deletions
+31
-31
FlightDisplayViewWidgets.qml
src/FlightDisplay/FlightDisplayViewWidgets.qml
+15
-15
QGCInstrumentWidget.qml
src/FlightMap/Widgets/QGCInstrumentWidget.qml
+16
-16
No files found.
src/FlightDisplay/FlightDisplayViewWidgets.qml
View file @
8a9f0c1a
...
@@ -76,20 +76,20 @@ Item {
...
@@ -76,20 +76,20 @@ Item {
//-- Instrument Pannel
//-- Instrument Pannel
QGCInstrumentWidget
{
QGCInstrumentWidget
{
anchors.margins
:
ScreenTools
.
defaultFontPixelHeight
anchors.margins
:
ScreenTools
.
defaultFontPixelHeight
anchors.right
:
parent
.
right
anchors.right
:
parent
.
right
anchors.
bottom
:
parent
.
bottom
anchors.
verticalCenter
:
parent
.
verticalCenter
size
:
ScreenTools
.
defaultFontPixelSize
*
(
9
)
size
:
ScreenTools
.
defaultFontPixelSize
*
(
9
)
active
:
_activeVehicle
!=
null
active
:
_activeVehicle
!=
null
heading
:
_heading
heading
:
_heading
rollAngle
:
_roll
rollAngle
:
_roll
pitchAngle
:
_pitch
pitchAngle
:
_pitch
altitude
:
_altitudeWGS84
altitude
:
_altitudeWGS84
groundSpeed
:
_groundSpeed
groundSpeed
:
_groundSpeed
airSpeed
:
_airSpeed
airSpeed
:
_airSpeed
climbRate
:
_climbRate
climbRate
:
_climbRate
isSatellite
:
_mainIsMap
?
_flightMap
?
_flightMap
.
isSatelliteMap
:
true
:
true
isSatellite
:
_mainIsMap
?
_flightMap
?
_flightMap
.
isSatelliteMap
:
true
:
true
z
:
QGroundControl
.
zOrderWidgets
z
:
QGroundControl
.
zOrderWidgets
}
}
//-- Vertical Tool Buttons
//-- Vertical Tool Buttons
...
@@ -97,7 +97,7 @@ Item {
...
@@ -97,7 +97,7 @@ Item {
id
:
toolColumn
id
:
toolColumn
anchors.margins
:
ScreenTools
.
defaultFontPixelHeight
anchors.margins
:
ScreenTools
.
defaultFontPixelHeight
anchors.left
:
parent
.
left
anchors.left
:
parent
.
left
anchors.
top
:
parent
.
top
anchors.
verticalCenter
:
parent
.
verticalCenter
spacing
:
ScreenTools
.
defaultFontPixelHeight
spacing
:
ScreenTools
.
defaultFontPixelHeight
//-- Map Center Control
//-- Map Center Control
...
...
src/FlightMap/Widgets/QGCInstrumentWidget.qml
View file @
8a9f0c1a
...
@@ -51,14 +51,14 @@ Item {
...
@@ -51,14 +51,14 @@ Item {
//-- Instrument Pannel
//-- Instrument Pannel
Rectangle
{
Rectangle
{
id
:
instrumentPannel
id
:
instrumentPannel
height
:
instruments
.
height
+
ScreenTools
.
defaultFontPixelSize
height
:
instruments
.
height
+
ScreenTools
.
defaultFontPixelSize
width
:
root
.
size
width
:
root
.
size
radius
:
root
.
size
/
2
radius
:
root
.
size
/
2
visible
:
_isVisible
visible
:
_isVisible
color
:
isSatellite
?
Qt
.
rgba
(
1
,
1
,
1
,
0.75
)
:
Qt
.
rgba
(
0
,
0
,
0
,
0.75
)
color
:
isSatellite
?
Qt
.
rgba
(
1
,
1
,
1
,
0.75
)
:
Qt
.
rgba
(
0
,
0
,
0
,
0.75
)
anchors.right
:
parent
.
right
anchors.right
:
parent
.
right
anchors.
bottom
:
parent
.
bottom
anchors.
verticalCenter
:
parent
.
verticalCenter
Column
{
Column
{
id
:
instruments
id
:
instruments
width
:
parent
.
width
width
:
parent
.
width
...
@@ -185,14 +185,14 @@ Item {
...
@@ -185,14 +185,14 @@ Item {
//-- Show Instruments
//-- Show Instruments
Rectangle
{
Rectangle
{
id
:
openButton
id
:
openButton
anchors.right
:
parent
.
right
anchors.right
:
parent
.
right
anchors.
bottom
:
parent
.
bottom
anchors.
verticalCenter
:
parent
.
verticalCenter
height
:
ScreenTools
.
defaultFontPixelSize
*
2
height
:
ScreenTools
.
defaultFontPixelSize
*
2
width
:
ScreenTools
.
defaultFontPixelSize
*
2
width
:
ScreenTools
.
defaultFontPixelSize
*
2
radius
:
ScreenTools
.
defaultFontPixelSize
/
3
radius
:
ScreenTools
.
defaultFontPixelSize
/
3
visible
:
!
_isVisible
visible
:
!
_isVisible
color
:
isSatellite
?
Qt
.
rgba
(
1
,
1
,
1
,
0.5
)
:
Qt
.
rgba
(
0
,
0
,
0
,
0.5
)
color
:
isSatellite
?
Qt
.
rgba
(
1
,
1
,
1
,
0.5
)
:
Qt
.
rgba
(
0
,
0
,
0
,
0.5
)
Image
{
Image
{
width
:
parent
.
width
*
0.75
width
:
parent
.
width
*
0.75
height
:
parent
.
height
*
0.75
height
:
parent
.
height
*
0.75
...
...
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