on xenial help sign in
Removed FIXME from slider int->double conversion.

Approved by PS Jenkins bot, Michael Zanetti.

commitb818c06c99a15b02d1d369e37a04a72e58d7a551 authorNick Dedekind <nicholas.dedekind@gmail.com> dateWed 4 Sep 2013, 08:00 (13 years ago) parent4f5821a4e8dc16
1 file changed+1−16
plugins/Unity/Indicators/qml/MenuItemFactory.qml+1−16
plugins/Unity/Indicators/qml/MenuItemFactory.qml+1−16
@@ -73,23 +73,8 @@ Item {
7373 'max-icon': 'icon'});
7474 }
7575
76− // FIXME: The interval should be [0.0 - 1.0]. Unfortunately, when
77− // reaching the boundaries (0.0 or 1.0), the value is converted
78− // to an integer when automatically wrapped in a variant when
79− // passed to QStateAction::updateState(…). The server chokes on
80− // those values, complaining that they’re not of the right type…
8176 onChangeState: {
82− if (value == Math.round(value)) {
83− if (value >= maximumValue) {
84− model.changeState(modelIndex, maximumValue - 0.000001);
85− } else if (value <= minimumValue) {
86− model.changeState(modelIndex, minimumValue + 0.000001);
87− } else {
88− model.changeState(modelIndex, value * 1.000001);
89− }
90− } else {
91− model.changeState(modelIndex, value);
92− }
77+ model.changeState(modelIndex, value);
9378 }
9479 }
9580 }