Skip to content
Snippets Groups Projects
Commit 4de82ca9 authored by Thomas Hartmann's avatar Thomas Hartmann Committed by con
Browse files

QmlDesigner.propertyEditor: fix opacity slider bug

The granularity of the slider was to fine.
So 1 could be a rounded 0.99.

Task-number: QTCREATORBUG-3035
Reviewed-by: Marco Bubke
parent d4591dd9
No related branches found
No related tags found
No related merge requests found
...@@ -58,17 +58,17 @@ GroupBox { ...@@ -58,17 +58,17 @@ GroupBox {
SliderWidget { SliderWidget {
id: opacitySlider id: opacitySlider
minimum: 0 minimum: 0
maximum: 100 maximum: 10
property variant pureValue: backendValues.opacity.value; property variant pureValue: backendValues.opacity.value;
onPureValueChanged: { onPureValueChanged: {
if (value != pureValue * 100) if (value != pureValue * 10)
value = pureValue * 100; value = pureValue * 10;
} }
singleStep: 5; singleStep: 5;
backendValue: backendValues.opacity backendValue: backendValues.opacity
onValueChanged: { onValueChanged: {
if ((value >= 0) && (value < 100)) if ((value >= 0) && (value <= 10))
backendValues.opacity.value = value / 100; backendValues.opacity.value = value / 10;
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment