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

QmlDesigner.propertyEditor: bugfix for Rectangle.radius

Task-number: QTCREATORBUG-4285
Reviewed-by: Marco Bubke
parent a22ad73b
......@@ -31,10 +31,6 @@ QWidget {
intEditor.backendValue === null)
? null : intEditor.backendValue.value;
onBackendValueValueChanged: {
intSlider.value = intEditor.backendValue.value;
}
minimum: minimumValue
maximum: maximumValue
baseStateFlag: intEditor.baseStateFlag
......@@ -54,12 +50,16 @@ QWidget {
minimum: minimumValue
maximum: maximumValue
singleStep: step
property int valueFromBackend: intEditor.backendValue.value;
onValueFromBackendChanged: {
if (intSlider.maximum < valueFromBackend)
intSlider.maximum = valueFromBackend;
if (intSlider.minimum > valueFromBackend)
intSlider.minimum = valueFromBackend;
intSlider.value = valueFromBackend;
}
value: (backendValue == undefined
|| backendValue == null
|| backendValue.value == undefined
|| backendValue.value == null) ? 0 : backendValue.value
onValueChanged: {
if (backendValue != undefined && backendValue != null)
backendValue.value = value;
......
......@@ -75,7 +75,11 @@ QWidget { //This is a special spinBox that does color coding for states
property int valueFromBackend: spinBox.backendValue.value;
onValueFromBackendChanged: {
readingFromBackend = true;
readingFromBackend = true;
if (maximum < valueFromBackend)
maximum = valueFromBackend;
if (minimum > valueFromBackend)
minimum = valueFromBackend;
value = valueFromBackend;
readingFromBackend = false;
evaluate();
......
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