Commit c0cae37d authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.PropertyEditor: fixing color editing



Change-Id: I3102799952bace9c052f70f52489f5d768621f25
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent f06d1ae0
......@@ -66,8 +66,10 @@ Column {
onColorChanged: {
textField.text = gradientLine.colorToString(color);
gradientLine.currentColor = color
//Delay setting the color to keep ui responsive
colorEditorTimer.restart()
if (buttonRow.checkedIndex !== 1)
//Delay setting the color to keep ui responsive
colorEditorTimer.restart()
}
GradientLine {
......@@ -105,10 +107,14 @@ Column {
LineEdit {
id: textField
inputMask: "\\#hhHHHHHH"
inputMask: "\\#HHHHHHhh"
backendValue: colorEditor.backendendValue
onAccepted: {
colorEditor.color = text
print("color")
print(textField.text)
colorEditor.color = textField.text
}
Layout.preferredWidth: 80
}
......@@ -124,26 +130,25 @@ Column {
ButtonRowButton {
iconSource: "images/icon_color_solid.png"
onClicked: {
colorEditor.backendendValue.resetValue();
}
}
ButtonRowButton {
visible: supportGradient
iconSource: "images/icon_color_gradient.png"
onClicked: {
print("gradient")
}
}
ButtonRowButton {
iconSource: "images/icon_color_none.png"
}
onToggled: {
if (index === 0) {
colorEditor.color = "#ffffff"
}
if (index === 2) {
onClicked: {
colorEditor.color = "#00000000"
}
}
}
......
Markdown is supported
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