From 985f6073dabb8a2823be7e3c6180ddecbaa9369a Mon Sep 17 00:00:00 2001 From: Henning Gruendl Date: Wed, 28 Oct 2020 09:59:01 +0100 Subject: [PATCH] QmlDesigner: Fix ColorEditor dragging Fix ColorEditor dragging by preventing that the mouse event gets stolen from the Flickable underneath. Task-number: QDS-2955 Change-Id: I3950d8fce3d3b59980a01f1c96bdb55aab56f263 Reviewed-by: Thomas Hartmann --- .../imports/HelperWidgets/ColorButton.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ColorButton.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ColorButton.qml index e609297149d..afba6def0c7 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ColorButton.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ColorButton.qml @@ -201,6 +201,7 @@ Item { MouseArea { id: mapMouseArea anchors.fill: parent + preventStealing: true onPositionChanged: { if (pressed && mouse.buttons === Qt.LeftButton) { var xx = Math.max(0, Math.min(mouse.x, parent.width))