Index: sources/gui/qml/components/ValueControl.qml =================================================================== diff -u -r3604ca12ed47f4c60a12bb42efa4949ef01b7d95 -rea5d186e9fc5e9581bcf3d7a7faba230f2035686 --- sources/gui/qml/components/ValueControl.qml (.../ValueControl.qml) (revision 3604ca12ed47f4c60a12bb42efa4949ef01b7d95) +++ sources/gui/qml/components/ValueControl.qml (.../ValueControl.qml) (revision ea5d186e9fc5e9581bcf3d7a7faba230f2035686) @@ -18,7 +18,6 @@ import QtQuick 2.12 import QtQuick.Controls 2.2 -import QtQuick.Shapes 1.9 Item { id: _root property real decimal : 0 @@ -39,13 +38,13 @@ function clear() { _root.active = false } function increment() { - if ( ! active ) { active = true } - else { _root.value += _root.step } + if ( ! active ) { active = true } + else { _root.value += _root.step } } function decrement() { - if ( ! active ) { active = true } - else { _root.value -= _root.step } + if ( ! active ) { active = true } + else { _root.value -= _root.step } } Text { id: _text @@ -65,9 +64,9 @@ visible : enabled opacity : 0 stepSize : _root.step - from : _root.minimum.toFixed ( _root.decimal ) - to : _root.maximum.toFixed ( _root.decimal ) - value : _root.value.toFixed ( _root.decimal ) + from : _root.minimum .toFixed ( _root.decimal ) + to : _root.maximum .toFixed ( _root.decimal ) + value : _root.value .toFixed ( _root.decimal ) snapMode : Slider.SnapOnRelease background : Rectangle { color: "transparent" } @@ -84,7 +83,7 @@ anchors.fill: parent property bool grabbed: false - onClicked: if ( _root.editable ) { active = focus = true } + onClicked: if ( _root.editable ) { active = focus = true } onPressed: { _slider.opacity = 0.3