[vlc-devel] [PATCH 1/4] qml: remove duplicate import in SearchBox
Fatih Uzunoglu
fuzun54 at outlook.com
Fri Oct 9 19:02:40 CEST 2020
---
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
--
2.25.1
More information about the vlc-devel
mailing list