Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
f610602d
Commit
f610602d
authored
Feb 25, 2017
by
Don Gagne
Committed by
GitHub
Feb 25, 2017
Browse files
Merge pull request #4616 from bluerobotics/wheelevents
Disable scrolling on QGCComboBox
parents
ecdfdfe4
1bdc7d60
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/QmlControls/QGCComboBox.qml
View file @
f610602d
...
...
@@ -39,4 +39,24 @@ ComboBox {
}
}
}
// Capture Wheel events to disable scrolling options in ComboBox.
// As a side effect, this also prevents scrolling the page when
// mouse is over a ComboBox, but this would also the case when
// scrolling items in the ComboBox is enabled.
MouseArea
{
anchors.fill
:
parent
onWheel
:
{
// do nothing
wheel
.
accepted
=
true
;
}
onPressed
:
{
// propogate to ComboBox
mouse
.
accepted
=
false
;
}
onReleased
:
{
// propogate to ComboBox
mouse
.
accepted
=
false
;
}
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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