mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-22 14:18:09 +00:00
feat(ui/modules/Common/Form/ExclusiveButtons): supports left/right clicks
This commit is contained in:
parent
c153ce191d
commit
2a3680ec72
1 changed files with 16 additions and 0 deletions
|
|
@ -22,7 +22,23 @@ Row {
|
|||
|
||||
spacing: ExclusiveButtonsStyle.buttonsSpacing
|
||||
|
||||
Keys.onLeftPressed: {
|
||||
if (selectedButton > 0) {
|
||||
clicked(--selectedButton)
|
||||
}
|
||||
}
|
||||
|
||||
Keys.onRightPressed: {
|
||||
if (selectedButton < repeater.count - 1) {
|
||||
clicked(++selectedButton)
|
||||
}
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
Repeater {
|
||||
id: repeater
|
||||
|
||||
model: texts
|
||||
|
||||
SmallButton {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue