on xenial help sign in
Seems we need this to force the slider to update itself with outside values
commit41634d8e8950df29e3f60ffd34a4f0bd8e3c2d63 authorAlbert Astals Cid <albert.astals@canonical.com> dateTue 9 Feb 2016, 14:55 (11 years ago) parent83064a1
1 file changed+12
qml/Dash/Filters/FilterValueSlider.qml+12
qml/Dash/Filters/FilterValueSlider.qml+12
@@ -25,6 +25,18 @@ FilterWidget {
2525
2626 implicitHeight: childrenRect.height + units.gu(2)
2727
28+ Connections {
29+ target: widgetData
30+ // One would think that this is not needed since
31+ // we have value: widgetData.value on the slider
32+ // but it is, otherwise reset doesn't seem to work
33+ onValueChanged: {
34+ if (widgetData.value !== slider.value) {
35+ slider.value = widgetData.value;
36+ }
37+ }
38+ }
39+
2840 Slider {
2941 id: slider
3042 objectName: "slider"