From 4d4fce3cfe83b02765677e5ceff06d24e059b5ec Mon Sep 17 00:00:00 2001 From: Henning Gruendl Date: Wed, 14 Jul 2021 13:33:23 +0200 Subject: [PATCH] QmlDesigner: Fix SpinBoxes blocking wheel events Change-Id: I99a30926e65805c6198786f46c65392b65f52d65 Reviewed-by: Thomas Hartmann --- .../imports/StudioControls/RealSpinBoxInput.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/RealSpinBoxInput.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/RealSpinBoxInput.qml index 8d92d9c94af..abc8568a2d7 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/RealSpinBoxInput.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/RealSpinBoxInput.qml @@ -214,8 +214,10 @@ TextInput { } onWheel: function(wheel) { - if (!myControl.__wheelEnabled) + if (!myControl.__wheelEnabled) { + wheel.accepted = false return + } // Set stepSize according to used modifier key if (wheel.modifiers & Qt.ControlModifier)