[vlc-commits] [Git][videolan/vlc][master] qml: fix `SearchBox` not closing on outside press
Steve Lhomme (@robUx4)
gitlab at videolan.org
Mon Sep 21 13:51:48 UTC 2026
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
a1af3f4f by Dhananjay Jha at 2026-09-21T13:35:21+00:00
qml: fix `SearchBox` not closing on outside press
Closes #30028
- - - - -
1 changed file:
- modules/gui/qt/widgets/qml/SearchBox.qml
Changes:
=====================================
modules/gui/qt/widgets/qml/SearchBox.qml
=====================================
@@ -163,6 +163,11 @@ FocusScope {
closePolicy: Popup.NoAutoClose
+ Binding on closePolicy {
+ when: textField.text.length === 0
+ value: Popup.CloseOnPressOutside
+ }
+
height: 0
visible: (height > 0)
@@ -171,6 +176,7 @@ FocusScope {
}
onClosed: {
+ root.retract()
textField.focus = false
focus = false
iconButton.focus = true
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/a1af3f4f147bd1215a039d04cb5049f964cc587a
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/a1af3f4f147bd1215a039d04cb5049f964cc587a
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help
More information about the vlc-commits
mailing list