vlc | branch: master | Fatih Uzunoglu <[email protected]> | Fri Oct 9 20:02:43 2020 +0300| [bf9c965a6dd2409f822e2a47f27221e1d8925dd5] | committer: Pierre Lamot
qml: be able to close searchbox when it's not empty > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bf9c965a6dd2409f822e2a47f27221e1d8925dd5 --- 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 + } } } _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
