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 {
//-- Instrument Pannel
QGCInstrumentWidget
{
anchors.margins
:
ScreenTools
.
defaultFontPixelHeight
anchors.right
:
parent
.
right
anchors.
bottom
:
parent
.
bottom
size
:
ScreenTools
.
defaultFontPixelSize
*
(
9
)
active
:
_activeVehicle
!=
null
heading
:
_heading
rollAngle
:
_roll
pitchAngle
:
_pitch
altitude
:
_altitudeWGS84
groundSpeed
:
_groundSpeed
airSpeed
:
_airSpeed
climbRate
:
_climbRate
isSatellite
:
_mainIsMap
?
_flightMap
?
_flightMap
.
isSatelliteMap
:
true
:
true
z
:
QGroundControl
.
zOrderWidgets
anchors.margins
:
ScreenTools
.
defaultFontPixelHeight
anchors.right
:
parent
.
right
anchors.
verticalCenter
:
parent
.
verticalCenter
size
:
ScreenTools
.
defaultFontPixelSize
*
(
9
)
active
:
_activeVehicle
!=
null
heading
:
_heading
rollAngle
:
_roll
pitchAngle
:
_pitch
altitude
:
_altitudeWGS84
groundSpeed
:
_groundSpeed
airSpeed
:
_airSpeed
climbRate
:
_climbRate
isSatellite
:
_mainIsMap
?
_flightMap
?
_flightMap
.
isSatelliteMap
:
true
:
true
z
:
QGroundControl
.
zOrderWidgets
}
//-- Vertical Tool Buttons
...
...
@@ -97,7 +97,7 @@ Item {
id
:
toolColumn
anchors.margins
:
ScreenTools
.
defaultFontPixelHeight
anchors.left
:
parent
.
left
anchors.
top
:
parent
.
top
anchors.
verticalCenter
:
parent
.
verticalCenter
spacing
:
ScreenTools
.
defaultFontPixelHeight
//-- Map Center Control
...
...
src/FlightMap/Widgets/QGCInstrumentWidget.qml
View file @
8a9f0c1a
...
...
@@ -51,14 +51,14 @@ Item {
//-- Instrument Pannel
Rectangle
{
id
:
instrumentPannel
height
:
instruments
.
height
+
ScreenTools
.
defaultFontPixelSize
width
:
root
.
size
radius
:
root
.
size
/
2
visible
:
_isVisible
color
:
isSatellite
?
Qt
.
rgba
(
1
,
1
,
1
,
0.75
)
:
Qt
.
rgba
(
0
,
0
,
0
,
0.75
)
anchors.right
:
parent
.
right
anchors.
bottom
:
parent
.
bottom
id
:
instrumentPannel
height
:
instruments
.
height
+
ScreenTools
.
defaultFontPixelSize
width
:
root
.
size
radius
:
root
.
size
/
2
visible
:
_isVisible
color
:
isSatellite
?
Qt
.
rgba
(
1
,
1
,
1
,
0.75
)
:
Qt
.
rgba
(
0
,
0
,
0
,
0.75
)
anchors.right
:
parent
.
right
anchors.
verticalCenter
:
parent
.
verticalCenter
Column
{
id
:
instruments
width
:
parent
.
width
...
...
@@ -185,14 +185,14 @@ Item {
//-- Show Instruments
Rectangle
{
id
:
openButton
anchors.right
:
parent
.
right
anchors.
bottom
:
parent
.
bottom
height
:
ScreenTools
.
defaultFontPixelSize
*
2
width
:
ScreenTools
.
defaultFontPixelSize
*
2
radius
:
ScreenTools
.
defaultFontPixelSize
/
3
visible
:
!
_isVisible
color
:
isSatellite
?
Qt
.
rgba
(
1
,
1
,
1
,
0.5
)
:
Qt
.
rgba
(
0
,
0
,
0
,
0.5
)
id
:
openButton
anchors.right
:
parent
.
right
anchors.
verticalCenter
:
parent
.
verticalCenter
height
:
ScreenTools
.
defaultFontPixelSize
*
2
width
:
ScreenTools
.
defaultFontPixelSize
*
2
radius
:
ScreenTools
.
defaultFontPixelSize
/
3
visible
:
!
_isVisible
color
:
isSatellite
?
Qt
.
rgba
(
1
,
1
,
1
,
0.5
)
:
Qt
.
rgba
(
0
,
0
,
0
,
0.5
)
Image
{
width
:
parent
.
width
*
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