mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 05:57:29 +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
|
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 {
|
down.indicator: Item {
|
||||||
x: spinBox.width - implicitWidth - 5
|
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
|
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 {
|
HifiControls.Label {
|
||||||
id: spinBoxLabel
|
id: spinBoxLabel
|
||||||
|
|
Loading…
Reference in a new issue