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

QmlDesigner.PropertyEditor: Fix OriginControl



The control has to use the new enum api.

Change-Id: I73e86ac1c4f2c3fe4373b12968ac86fbbaee64aa
Reviewed-by: default avatarAlessandro Portale <alessandro.portale@digia.com>
parent ff5c9644
......@@ -51,7 +51,10 @@ Item {
id: colorLogic
backendValue: originControl.backendValue
onValueFromBackendChanged: {
grid.select(valueFromBackend);
var enumString = originControl.backendValue.enumeration;
if (enumString === "")
enumString = originControl.backendValue.value
grid.select(enumString);
}
}
......@@ -63,7 +66,7 @@ Item {
id: grid
function setValue(myValue) {
originControl.backendValue.value = myValue
originControl.backendValue.setEnumeration("Item", myValue)
}
function select(myValue) {
......
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