aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksei German <aleksei.german@qt.io>2019-10-11 15:07:05 +0200
committerAleksei German <aleksei.german@qt.io>2019-10-11 14:43:55 +0000
commitb84fecfb7d86eaf28dba8a8a52bfcc8c4e813425 (patch)
treebcf656071f8317331bcb3891dd18692b7512429e
parent5535bc04ee644a2ee2df292524445d332097392c (diff)
QmlDesigner Fix for ColorButton dragging issue
Change-Id: I2e69a732f6dcdbbe8bf5f0516df76736971d96cd Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
-rw-r--r--share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ColorButton.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ColorButton.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ColorButton.qml
index cb896024e9..e44fb8ba55 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))