aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quickcontrols/qquickmenubar/data/hoverAfterClosingWithEscape.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/quickcontrols/qquickmenubar/data/hoverAfterClosingWithEscape.qml')
-rw-r--r--tests/auto/quickcontrols/qquickmenubar/data/hoverAfterClosingWithEscape.qml46
1 files changed, 46 insertions, 0 deletions
diff --git a/tests/auto/quickcontrols/qquickmenubar/data/hoverAfterClosingWithEscape.qml b/tests/auto/quickcontrols/qquickmenubar/data/hoverAfterClosingWithEscape.qml
new file mode 100644
index 0000000000..998a6387dd
--- /dev/null
+++ b/tests/auto/quickcontrols/qquickmenubar/data/hoverAfterClosingWithEscape.qml
@@ -0,0 +1,46 @@
+// Copyright (C) 2023 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
+
+import QtQuick
+import QtQuick.Controls
+
+ApplicationWindow {
+ width: 300
+ height: 300
+
+ MenuBar {
+ objectName: "menuBar"
+
+ Menu {
+ title: qsTr("File")
+
+ MenuItem {
+ text: qsTr("New")
+ }
+ }
+
+ Menu {
+ title: qsTr("Edit")
+
+ MenuItem {
+ text: qsTr("Undo")
+ }
+ }
+
+ Menu {
+ title: qsTr("View")
+
+ MenuItem {
+ text: qsTr("Center")
+ }
+ }
+
+ Menu {
+ title: qsTr("Tools")
+
+ MenuItem {
+ text: qsTr("Options")
+ }
+ }
+ }
+}