Skip to content
Snippets Groups Projects
Commit 65b9b2de authored by Pierre Lamot's avatar Pierre Lamot Committed by Felix Paul Kühne
Browse files

qml: lock the toolbar when aspect ratio combo box is opened

parent 10a42348
No related branches found
No related tags found
Loading
Pipeline #310993 passed with stage
in 37 minutes and 5 seconds
......@@ -24,7 +24,11 @@ import "qrc:///style/"
Widgets.ComboBoxExt {
id: combo
property bool paintOnly: false
signal requestLockUnlockAutoHide(bool lock)
width: VLCStyle.combobox_width_normal
height: VLCStyle.combobox_height_normal
textRole: "display"
......@@ -32,4 +36,10 @@ Widgets.ComboBoxExt {
currentIndex: -1
onCurrentIndexChanged: model.toggleIndex(currentIndex)
Accessible.name: I18n.qtr("Aspect ratio")
Connections {
target: combo.popup
onOpened: combo.requestLockUnlockAutoHide(true)
onClosed: combo.requestLockUnlockAutoHide(false)
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment