Fix my own mistake. The keys act throught the labels and the function in

the labels is called setValue that then points to the setValueManually.

Contributes to CURA-5725.
This commit is contained in:
Diego Prado Gesto 2018-09-18 17:04:24 +02:00
parent 0ef46feeae
commit c31f584e5b
2 changed files with 4 additions and 4 deletions

View file

@ -148,8 +148,8 @@ Item
sliderRoot.updateRangeHandle()
}
Keys.onRightPressed: handleLabel.setValueManually(handleLabel.value + ((event.modifiers & Qt.ShiftModifier) ? 10 : 1))
Keys.onLeftPressed: handleLabel.setValueManually(handleLabel.value - ((event.modifiers & Qt.ShiftModifier) ? 10 : 1))
Keys.onRightPressed: handleLabel.setValue(handleLabel.value + ((event.modifiers & Qt.ShiftModifier) ? 10 : 1))
Keys.onLeftPressed: handleLabel.setValue(handleLabel.value - ((event.modifiers & Qt.ShiftModifier) ? 10 : 1))
// dragging
MouseArea