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
039d61c0
Commit
039d61c0
authored
Dec 03, 2015
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't show current selection
Simpler this way
parent
b17d704c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
24 deletions
+3
-24
MissionCommandDialog.qml
src/QmlControls/MissionCommandDialog.qml
+3
-24
No files found.
src/QmlControls/MissionCommandDialog.qml
View file @
039d61c0
...
...
@@ -49,7 +49,6 @@ QGCViewDialog {
function
categorySelected
(
category
)
{
commandList
.
model
=
QGroundControl
.
missionCommands
.
getCommandsForCategory
(
category
)
console
.
log
(
"
changing model
"
,
category
)
}
Component.onCompleted
:
{
...
...
@@ -71,33 +70,13 @@ QGCViewDialog {
spacing
:
ScreenTools
.
defaultFontPixelHeight
/
2
orientation
:
ListView
.
Vertical
onModelChanged
:
{
var
currentCategory
=
categoryCombo
.
currentText
currentIndex
=
-
1
if
(
missionItem
.
category
==
currentCategory
)
{
var
commandList
=
QGroundControl
.
missionCommands
.
getCommandsForCategory
(
currentCategory
)
for
(
var
i
=
0
;
i
<
commandList
.
count
;
i
++
)
{
if
(
commandList
.
get
(
i
).
command
==
missionItem
.
command
)
{
currentIndex
=
i
break
}
}
}
}
highlight
:
Rectangle
{
color
:
qgcPal
.
buttonHighlight
}
delegate
:
Rectangle
{
width
:
parent
.
width
height
:
commandColumn
.
height
+
ScreenTools
.
defaultFontPixelSize
color
:
currentItem
?
qgcPal
.
buttonHighlight
:
qgcPal
.
button
color
:
qgcPal
.
button
property
var
mavCmdInfo
:
object
property
bool
currentItem
:
commandList
.
currentItem
==
this
property
var
textColor
:
currentItem
?
qgcPal
.
buttonHighlightText
:
qgcPal
.
buttonText
property
var
mavCmdInfo
:
object
property
var
textColor
:
qgcPal
.
buttonText
Column
{
id
:
commandColumn
...
...
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