Commit 5658daa1 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.propertyEditor: fixes Opacity and Scale slider

See: BAUHAUS-590
parent 2bba8353
......@@ -67,12 +67,17 @@ GroupBox {
SliderWidget {
id: scaleSlider;
backendValue: backendValues.scale;
value: backendValues.scale.value * 10;
property var pureValue: backendValues.scale.value;
onPureValueChanged: {
if (value != pureValue * 100)
value = pureValue * 100;
}
minimum: 1;
maximum: 100;
singleStep: 1;
onValueChanged: {
backendValues.scale.value = value / 10;
if ((value > 5) && (value < 100))
backendValues.scale.value = value / 100;
}
}
}
......
......@@ -52,10 +52,15 @@ GroupBox {
id: opacitySlider
minimum: 0
maximum: 100
value: backendValues.opacity.value * 100;
property var pureValue: backendValues.opacity.value;
onPureValueChanged: {
if (value != pureValue * 100)
value = pureValue * 100;
}
singleStep: 5;
backendValue: backendValues.opacity
onValueChanged: {
if ((value >= 0) && (value < 100))
backendValues.opacity.value = value / 100;
}
}
......
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