Commit 94e475f2 authored by Jens Bache-Wiig's avatar Jens Bache-Wiig Committed by The Qt Project
Browse files

Add basic mouse wheel support to SpinBox


Change-Id: I9305a96d981f19ae85104facf2da01b2b215f316
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: default avatarCaroline Chao <caroline.chao@digia.com>
parent e1d5a982
Branches
Tags
No related merge requests found
Showing with 6 additions and 0 deletions
......@@ -192,6 +192,12 @@ Control {
anchors.fill: parent
hoverEnabled: true
onPressed: if (activeFocusOnPress) input.forceActiveFocus()
onWheel: {
if (wheel.angleDelta.y > 0)
__increment();
else
__decrement();
}
}
TextInput {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment