Commit 147ed4ba authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

PropertyEditor.QmlDesigner: Fix the color LineEdit



Using hasToConvertColor to handle the alpha channel.

Change-Id: I6b6e2ef4361efb7aba3adaf549cbddd625145e33
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent 32bc73d6
......@@ -68,7 +68,6 @@ Column {
onColorChanged: {
if (!gradientLine.isCompleted)
return;
textField.text = gradientLine.colorToString(color);
if (supportGradient && gradientLine.visible)
gradientLine.currentColor = color
......@@ -132,6 +131,8 @@ Column {
LineEdit {
id: textField
hasToConvertColor: true
validator: RegExpValidator {
regExp: /#[0-9A-Fa-f]{6}([0-9A-Fa-f]{2})?/g
}
......@@ -141,8 +142,9 @@ Column {
backendValue: colorEditor.backendendValue
onAccepted: {
colorEditor.color = textField.text
colorEditor.color = colorFromString(textField.text)
}
Layout.fillWidth: true
}
ColorCheckButton {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment