From 31deb76bd587b3375bdcd52d7e6002afe9cfe38d Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Tue, 20 May 2014 17:48:55 +0200 Subject: [PATCH] QmlDesigner.PropertyEditor: Fix for LineEdit if editing a gradient Change-Id: I7f83d7736b7dd0268420612ad1bd0f3b43c8617e Reviewed-by: Thomas Hartmann --- .../propertyEditorQmlSources/HelperWidgets/ColorEditor.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/ColorEditor.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/ColorEditor.qml index e2b9ad9a8f2..bd53f75ac03 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/ColorEditor.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/ColorEditor.qml @@ -69,8 +69,10 @@ Column { if (!gradientLine.isCompleted) return; - if (supportGradient && gradientLine.visible) + if (supportGradient && gradientLine.hasGradient) { gradientLine.currentColor = color + textField.text = convertColorToString(color) + } if (buttonRow.checkedIndex !== 1) //Delay setting the color to keep ui responsive