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
1e5aaf80
Commit
1e5aaf80
authored
7 years ago
by
DonLakeFlyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix checkmarks on combobox
parent
04023e5a
master
dev1
merge_branch_alt
original
phil
rc1
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
20 deletions
+13
-20
QGCComboBox.qml
src/QmlControls/QGCComboBox.qml
+13
-20
No files found.
src/QmlControls/QGCComboBox.qml
View file @
1e5aaf80
...
...
@@ -99,6 +99,8 @@ Button {
return
-
1
}
ExclusiveGroup
{
id
:
eg
}
Menu
{
id
:
popup
__minimumWidth
:
combo
.
width
...
...
@@ -106,6 +108,10 @@ Button {
style
:
MenuStyle
{
font
:
combo
.
font
__labelColor
:
combo
.
_qgcPal
.
text
__selectedLabelColor
:
combo
.
_qgcPal
.
buttonText
__selectedBackgroundColor
:
combo
.
_qgcPal
.
buttonHighlight
__maxPopupHeight
:
600
__menuItemType
:
"
comboboxitem
"
__scrollerStyle
:
ScrollViewStyle
{
}
}
...
...
@@ -187,22 +193,6 @@ Button {
}
}
Component
{
id
:
menuItemComponent
MenuItem
{
property
int
index
onTriggered
:
{
//console.log("onTriggered", index, currentIndex)
if
(
index
!==
currentIndex
)
{
//console.log("activated", index)
activated
(
index
)
}
}
}
}
Instantiator
{
id
:
popupItems
...
...
@@ -240,6 +230,9 @@ Button {
MenuItem
{
text
:
popup
.
textRole
===
''
?
modelData
:
((
popup
.
_modelIsArray
?
modelData
[
popup
.
textRole
]
:
model
[
popup
.
textRole
])
||
''
)
checked
:
index
==
currentIndex
checkable
:
true
exclusiveGroup
:
eg
property
int
itemIndex
:
index
...
...
This diff is collapsed.
Click to expand it.
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