[vlc-devel] [PATCH 4/4] qml: be able to close searchbox when it's not empty
Fatih Uzunoglu
fuzun54 at outlook.com
Fri Oct 9 19:02:43 CEST 2020
---
modules/gui/qt/widgets/qml/SearchBox.qml | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/gui/qt/widgets/qml/SearchBox.qml b/modules/gui/qt/widgets/qml/SearchBox.qml
index 2c6985b888..3d2e1ab493 100644
--- a/modules/gui/qt/widgets/qml/SearchBox.qml
+++ b/modules/gui/qt/widgets/qml/SearchBox.qml
@@ -91,6 +91,10 @@ Widgets.NavigableFocusScope {
onClicked: {
if (searchBox.text == "")
expanded = !expanded
+ else {
+ searchBox.clear()
+ expanded = !expanded
+ }
}
}
--
2.25.1
More information about the vlc-devel
mailing list