[vlc-commits] qml: remove duplicate import in SearchBox

Fatih Uzunoglu git at videolan.org
Thu Oct 15 10:33:02 CEST 2020


vlc | branch: master | Fatih Uzunoglu <fuzun54 at outlook.com> | Fri Oct  9 20:02:40 2020 +0300| [0d07e1b1a998be9e639a81c46a252c19f9e69c78] | committer: Pierre Lamot

qml: remove duplicate import in SearchBox

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0d07e1b1a998be9e639a81c46a252c19f9e69c78
---

 modules/gui/qt/widgets/qml/SearchBox.qml | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/modules/gui/qt/widgets/qml/SearchBox.qml b/modules/gui/qt/widgets/qml/SearchBox.qml
index 776ce140a9..161ede746c 100644
--- a/modules/gui/qt/widgets/qml/SearchBox.qml
+++ b/modules/gui/qt/widgets/qml/SearchBox.qml
@@ -18,7 +18,6 @@
 import QtQuick 2.11
 import QtQuick.Controls 2.4
 import QtQuick.Layouts 1.3
-import QtQuick 2.11 as QtQuick
 
 import "qrc:///style/"
 import "qrc:///widgets/" as Widgets
@@ -128,8 +127,8 @@ Widgets.NavigableFocusScope {
                 //don't use KeyHelper.matchCancel here as we don't want to match Backspace
                 if (event.key === Qt.Key_Back
                     || event.key === Qt.Key_Cancel
-                    || event.matches(QtQuick.StandardKey.Back)
-                    || event.matches(QtQuick.StandardKey.Cancel))
+                    || event.matches(StandardKey.Back)
+                    || event.matches(StandardKey.Cancel))
                 {
                     event.accepted = true
                 }
@@ -139,8 +138,8 @@ Widgets.NavigableFocusScope {
                 //don't use KeyHelper.matchCancel here as we don't want to match Backspace
                 if (event.key === Qt.Key_Back
                     || event.key === Qt.Key_Cancel
-                    || event.matches(QtQuick.StandardKey.Back)
-                    || event.matches(QtQuick.StandardKey.Cancel))
+                    || event.matches(StandardKey.Back)
+                    || event.matches(StandardKey.Cancel))
                 {
                     text = ""
                     expanded = false



More information about the vlc-commits mailing list