From b84fecfb7d86eaf28dba8a8a52bfcc8c4e813425 Mon Sep 17 00:00:00 2001 From: Aleksei German Date: Fri, 11 Oct 2019 15:07:05 +0200 Subject: [PATCH] QmlDesigner Fix for ColorButton dragging issue Change-Id: I2e69a732f6dcdbbe8bf5f0516df76736971d96cd Reviewed-by: Thomas Hartmann --- .../imports/HelperWidgets/ColorButton.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ColorButton.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ColorButton.qml index cb896024e93..e44fb8ba553 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ColorButton.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ColorButton.qml @@ -203,7 +203,7 @@ Item { id: mapMouseArea anchors.fill: parent onPositionChanged: { - if (pressed && mouse.button === Qt.LeftButton) { + if (pressed && mouse.buttons === Qt.LeftButton) { var xx = Math.max(0, Math.min(mouse.x, parent.width)) var yy = Math.max(0, Math.min(mouse.y, parent.height))