mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 14:53:24 +02:00
Merge pull request #13679 from ElderOrb/FB16840
FB16840 - Qml spinboxes in UI toolkit should focus the underlying fie…
This commit is contained in:
commit
082a3bca89
1 changed files with 10 additions and 0 deletions
|
@ -124,6 +124,11 @@ SpinBox {
|
|||
color: spinBox.up.pressed || spinBox.up.hovered ? (isLightColorScheme ? hifi.colors.black : hifi.colors.white) : hifi.colors.gray
|
||||
}
|
||||
}
|
||||
up.onPressedChanged: {
|
||||
if(value) {
|
||||
spinBox.forceActiveFocus();
|
||||
}
|
||||
}
|
||||
|
||||
down.indicator: Item {
|
||||
x: spinBox.width - implicitWidth - 5
|
||||
|
@ -138,6 +143,11 @@ SpinBox {
|
|||
color: spinBox.down.pressed || spinBox.down.hovered ? (isLightColorScheme ? hifi.colors.black : hifi.colors.white) : hifi.colors.gray
|
||||
}
|
||||
}
|
||||
down.onPressedChanged: {
|
||||
if(value) {
|
||||
spinBox.forceActiveFocus();
|
||||
}
|
||||
}
|
||||
|
||||
HifiControls.Label {
|
||||
id: spinBoxLabel
|
||||
|
|
Loading…
Reference in a new issue