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
97ad69d0
Unverified
Commit
97ad69d0
authored
Oct 19, 2019
by
Don Gagne
Committed by
GitHub
Oct 19, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7933 from DonLakeFlyer/IndicatorSpacing
Toolbar: Indicator spacing
parents
291b845f
8acfb307
Changes
13
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
70 additions
and
50 deletions
+70
-50
GuidedActionsController.qml
src/FlightDisplay/GuidedActionsController.qml
+35
-34
ArmedIndicator.qml
src/ui/toolbar/ArmedIndicator.qml
+2
-0
BatteryIndicator.qml
src/ui/toolbar/BatteryIndicator.qml
+2
-0
GPSIndicator.qml
src/ui/toolbar/GPSIndicator.qml
+2
-0
GPSRTKIndicator.qml
src/ui/toolbar/GPSRTKIndicator.qml
+3
-2
LinkIndicator.qml
src/ui/toolbar/LinkIndicator.qml
+3
-4
MainToolBarIndicators.qml
src/ui/toolbar/MainToolBarIndicators.qml
+3
-1
MessageIndicator.qml
src/ui/toolbar/MessageIndicator.qml
+3
-1
ModeIndicator.qml
src/ui/toolbar/ModeIndicator.qml
+2
-0
MultiVehicleSelector.qml
src/ui/toolbar/MultiVehicleSelector.qml
+2
-1
RCRSSIIndicator.qml
src/ui/toolbar/RCRSSIIndicator.qml
+3
-1
TelemetryRSSIIndicator.qml
src/ui/toolbar/TelemetryRSSIIndicator.qml
+5
-3
VTOLModeIndicator.qml
src/ui/toolbar/VTOLModeIndicator.qml
+5
-3
No files found.
src/FlightDisplay/GuidedActionsController.qml
View file @
97ad69d0
This diff is collapsed.
Click to expand it.
src/ui/toolbar/ArmedIndicator.qml
View file @
97ad69d0
...
...
@@ -28,6 +28,8 @@ QGCComboBox {
currentIndex
:
-
1
sizeToContents
:
true
property
bool
showIndicator
:
true
property
var
_activeVehicle
:
QGroundControl
.
multiVehicleManager
.
activeVehicle
property
bool
_armed
:
_activeVehicle
?
_activeVehicle
.
armed
:
false
...
...
src/ui/toolbar/BatteryIndicator.qml
View file @
97ad69d0
...
...
@@ -24,6 +24,8 @@ Item {
anchors.bottom
:
parent
.
bottom
width
:
batteryIndicatorRow
.
width
property
bool
showIndicator
:
true
function
getBatteryColor
()
{
if
(
activeVehicle
)
{
if
(
activeVehicle
.
battery
.
percentRemaining
.
value
>
75
)
{
...
...
src/ui/toolbar/GPSIndicator.qml
View file @
97ad69d0
...
...
@@ -24,6 +24,8 @@ Item {
anchors.top
:
parent
.
top
anchors.bottom
:
parent
.
bottom
property
bool
showIndicator
:
true
Component
{
id
:
gpsInfo
...
...
src/ui/toolbar/GPSRTKIndicator.qml
View file @
97ad69d0
...
...
@@ -19,10 +19,11 @@ import QGroundControl.Palette 1.0
//-- GPS Indicator
Item
{
id
:
_root
width
:
visible
?
(
gpsValuesColumn
.
x
+
gpsValuesColumn
.
width
)
*
1.1
:
0
width
:
(
gpsValuesColumn
.
x
+
gpsValuesColumn
.
width
)
*
1.1
anchors.top
:
parent
.
top
anchors.bottom
:
parent
.
bottom
visible
:
QGroundControl
.
gpsRtk
.
connected
.
value
property
bool
showIndicator
:
QGroundControl
.
gpsRtk
.
connected
.
value
Component
{
id
:
gpsInfo
...
...
src/ui/toolbar/LinkIndicator.qml
View file @
97ad69d0
...
...
@@ -23,10 +23,9 @@ import QGroundControl.Vehicle 1.0
Item
{
anchors.top
:
parent
.
top
anchors.bottom
:
parent
.
bottom
width
:
visible
?
priorityLinkSelector
.
width
:
0
visible
:
_visible
width
:
priorityLinkSelector
.
width
property
bool
_visible
:
false
property
bool
showIndicator
:
false
QGCLabel
{
id
:
priorityLinkSelector
...
...
@@ -66,7 +65,7 @@ Item {
}
}
_visible
=
links
.
length
>
1
&&
has_hl
showIndicator
=
links
.
length
>
1
&&
has_hl
}
}
...
...
src/ui/toolbar/MainToolBarIndicators.qml
View file @
97ad69d0
...
...
@@ -84,10 +84,12 @@ Item {
Repeater
{
model
:
activeVehicle
?
activeVehicle
.
toolBarIndicators
:
[]
Loader
{
id
:
indicatorLoader
anchors.top
:
parent
.
top
anchors.bottom
:
parent
.
bottom
anchors.margins
:
ScreenTools
.
defaultFontPixelHeight
*
0.66
source
:
modelData
;
source
:
modelData
visible
:
item
.
showIndicator
}
}
}
...
...
src/ui/toolbar/MessageIndicator.qml
View file @
97ad69d0
...
...
@@ -25,7 +25,9 @@ Item {
anchors.top
:
parent
.
top
anchors.bottom
:
parent
.
bottom
property
bool
_isMessageImportant
:
activeVehicle
?
!
activeVehicle
.
messageTypeNormal
&&
!
activeVehicle
.
messageTypeNone
:
false
property
bool
showIndicator
:
true
property
bool
_isMessageImportant
:
activeVehicle
?
!
activeVehicle
.
messageTypeNormal
&&
!
activeVehicle
.
messageTypeNone
:
false
function
getMessageColor
()
{
if
(
activeVehicle
)
{
...
...
src/ui/toolbar/ModeIndicator.qml
View file @
97ad69d0
...
...
@@ -28,6 +28,8 @@ QGCComboBox {
currentIndex
:
-
1
sizeToContents
:
true
property
bool
showIndicator
:
true
property
var
_activeVehicle
:
QGroundControl
.
multiVehicleManager
.
activeVehicle
property
var
_flightModes
:
_activeVehicle
?
_activeVehicle
.
flightModes
:
[
]
...
...
src/ui/toolbar/MultiVehicleSelector.qml
View file @
97ad69d0
...
...
@@ -26,7 +26,8 @@ QGCComboBox {
currentIndex
:
-
1
sizeToContents
:
true
model
:
_vehicleModel
visible
:
_multipleVehicles
property
bool
showIndicator
:
_multipleVehicles
property
var
_activeVehicle
:
QGroundControl
.
multiVehicleManager
.
activeVehicle
property
bool
_multipleVehicles
:
_activeVehicle
?
QGroundControl
.
multiVehicleManager
.
vehicles
.
count
>
1
:
false
...
...
src/ui/toolbar/RCRSSIIndicator.qml
View file @
97ad69d0
...
...
@@ -23,8 +23,10 @@ Item {
width
:
rssiRow
.
width
*
1.1
anchors.top
:
parent
.
top
anchors.bottom
:
parent
.
bottom
visible
:
activeVehicle
?
activeVehicle
.
supportsRadio
:
true
property
bool
showIndicator
:
_activeVehicle
.
supportsRadio
property
var
_activeVehicle
:
QGroundControl
.
multiVehicleManager
.
activeVehicle
property
bool
_rcRSSIAvailable
:
activeVehicle
?
activeVehicle
.
rcRSSI
>
0
&&
activeVehicle
.
rcRSSI
<=
100
:
false
Component
{
...
...
src/ui/toolbar/TelemetryRSSIIndicator.qml
View file @
97ad69d0
...
...
@@ -22,10 +22,12 @@ Item {
id
:
_root
anchors.top
:
parent
.
top
anchors.bottom
:
parent
.
bottom
width
:
_hasTelemetry
?
telemIcon
.
width
*
1.1
:
0
visible
:
_hasTelemetry
width
:
telemIcon
.
width
*
1.1
property
bool
_hasTelemetry
:
activeVehicle
?
activeVehicle
.
telemetryLRSSI
!==
0
:
false
property
bool
showIndicator
:
_hasTelemetry
property
var
_activeVehicle
:
QGroundControl
.
multiVehicleManager
.
activeVehicle
property
bool
_hasTelemetry
:
_activeVehicle
?
_activeVehicle
.
telemetryLRSSI
!==
0
:
false
Component
{
id
:
telemRSSIInfo
...
...
src/ui/toolbar/VTOLModeIndicator.qml
View file @
97ad69d0
...
...
@@ -26,10 +26,12 @@ QGCLabel {
text
:
_fwdFlight
?
qsTr
(
"
VTOL: Fixed Wing
"
)
:
qsTr
(
"
VTOL: Multi-Rotor
"
)
font.pointSize
:
ScreenTools
.
mediumFontPointSize
color
:
qgcPal
.
buttonText
visible
:
activeVehicle
?
activeVehicle
.
vtol
&&
activeVehicle
.
px4Firmware
:
false
width
:
visible
?
implicitWidth
:
0
width
:
implicitWidth
property
bool
_fwdFlight
:
activeVehicle
?
activeVehicle
.
vtolInFwdFlight
:
false
property
bool
showIndicator
:
_activeVehicle
.
vtol
&&
_activeVehicle
.
px4Firmware
property
var
_activeVehicle
:
QGroundControl
.
multiVehicleManager
.
activeVehicle
property
bool
_fwdFlight
:
_activeVehicle
.
vtolInFwdFlight
QGCMouseArea
{
fillItem
:
parent
...
...
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