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
961eac7b
Commit
961eac7b
authored
Dec 11, 2019
by
DonLakeFlyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parent
f16fe8ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
10 deletions
+18
-10
VTOLModeIndicator.qml
src/ui/toolbar/VTOLModeIndicator.qml
+18
-10
No files found.
src/ui/toolbar/VTOLModeIndicator.qml
View file @
961eac7b
...
...
@@ -19,21 +19,29 @@ import QGroundControl.Palette 1.0
//-------------------------------------------------------------------------
//-- VTOL Mode Indicator
QGC
Label
{
QGC
ComboBox
{
anchors.verticalCenter
:
parent
.
verticalCenter
verticalAlignment
:
Text
.
AlignVCenter
text
:
_fwdFlight
?
qsTr
(
"
VTOL: Fixed Wing
"
)
:
qsTr
(
"
VTOL: Multi-Rotor
"
)
alternateText
:
_fwdFlight
?
qsTr
(
"
VTOL: FW
"
)
:
qsTr
(
"
VTOL: MR
"
)
model
:
[
qsTr
(
"
VTOL: Multi-Rotor
"
),
qsTr
(
"
VTOL: Fixed Wing
"
)
]
font.pointSize
:
ScreenTools
.
mediumFontPointSize
c
olor
:
qgcPal
.
buttonText
width
:
implicitWidth
c
urrentIndex
:
-
1
sizeToContents
:
true
property
bool
showIndicator
:
_activeVehicle
.
vtol
&&
_activeVehicle
.
px4Firmware
property
var
_activeVehicle
:
QGroundControl
.
multiVehicleManager
.
activeVehicle
property
bool
_fwdFlight
:
_activeVehicle
.
vtolInFwdFlight
property
var
_activeVehicle
:
QGroundControl
.
multiVehicleManager
.
activeVehicle
property
bool
_fwdFlight
:
_activeVehicle
.
vtolInFwdFlight
QGCMouseArea
{
fillItem
:
parent
onClicked
:
activeVehicle
.
vtolInFwdFlight
?
toolBar
.
vtolTransitionToMRFlight
()
:
toolBar
.
vtolTransitionToFwdFlight
()
onActivated
:
{
if
(
index
==
0
)
{
if
(
_fwdFlight
)
{
mainWindow
.
vtolTransitionToMRFlight
()
}
}
else
{
if
(
!
_fwdFlight
)
{
mainWindow
.
vtolTransitionToFwdFlight
()
}
}
currentIndex
=
-
1
}
}
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