mirror of
https://code.videolan.org/videolan/vlc
synced 2024-10-03 01:31:53 +02:00
qml/SpinBoxExt: Add Navigation support
This commit is contained in:
parent
7cb89f2ba4
commit
135cc6678f
@ -51,6 +51,9 @@ SpinBox{
|
||||
}
|
||||
|
||||
contentItem: TextInput {
|
||||
// NOTE: This is required for InterfaceWindowHandler::applyKeyEvent.
|
||||
property bool visualFocus: control.visualFocus
|
||||
|
||||
text: control.textFromValue(control.value, control.locale)
|
||||
|
||||
font: control.font
|
||||
@ -62,6 +65,13 @@ SpinBox{
|
||||
autoScroll: false
|
||||
readOnly: !control.editable
|
||||
validator: control.validator
|
||||
|
||||
Keys.priority: Keys.AfterItem
|
||||
|
||||
Keys.onPressed: Navigation.defaultKeyAction(event)
|
||||
Keys.onReleased: Navigation.defaultKeyReleaseAction(event)
|
||||
|
||||
Navigation.parentItem: control
|
||||
}
|
||||
up.indicator: Rectangle {
|
||||
x: parent.width - width
|
||||
|
Loading…
Reference in New Issue
Block a user