NPill: added support for mouse wheel up/down
This commit is contained in:
parent
4a22910897
commit
c05365c949
1 changed files with 4 additions and 0 deletions
|
|
@ -21,6 +21,7 @@ Item {
|
||||||
property var onEntered: function () {}
|
property var onEntered: function () {}
|
||||||
property var onExited: function () {}
|
property var onExited: function () {}
|
||||||
property var onClicked: function () {}
|
property var onClicked: function () {}
|
||||||
|
property var onWheel: function (delta) {}
|
||||||
|
|
||||||
// Internal state
|
// Internal state
|
||||||
property bool showPill: false
|
property bool showPill: false
|
||||||
|
|
@ -204,6 +205,9 @@ Item {
|
||||||
onClicked: {
|
onClicked: {
|
||||||
root.onClicked()
|
root.onClicked()
|
||||||
}
|
}
|
||||||
|
onWheel: wheel => {
|
||||||
|
root.onWheel(wheel.angleDelta.y)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function show() {
|
function show() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue