Warning, /utilities/vail/src/ui/GlobalMenu.qml is written in an unsupported language. File is not indexed.

0001 // SPDX-FileCopyrightText: 2022 Felipe Kinoshita <kinofhek@gmail.com>
0002 // SPDX-License-Identifier: GPL-3.0-or-later
0003 
0004 import QtQuick 2.15
0005 import Qt.labs.platform 1.1 as Labs
0006 import org.kde.kirigami 2.19 as Kirigami
0007 
0008 import org.kde.vail 1.0
0009 
0010 Labs.MenuBar {
0011     id: menuBar
0012 
0013     Labs.Menu {
0014         title: i18nc("@menu", "File")
0015 
0016         Labs.MenuItem {
0017             text: i18nc("@menu-action", "Quit")
0018             icon.name: "application-exit"
0019             onTriggered: Qt.quit()
0020         }
0021     }
0022 
0023     Labs.Menu {
0024         title: i18nc("@menu", "Help")
0025 
0026         Labs.MenuItem {
0027             text: i18nc("@menu-action", "Report Bug…")
0028             icon.name: "tools-report-bug"
0029             onTriggered: Qt.openUrlExternally(AboutType.aboutData.bugAddress);
0030         }
0031 
0032         Labs.MenuItem {
0033             text: i18nc("@menu-action", "About Vail")
0034             icon.name: "help-about"
0035             onTriggered: pageStack.layers.push("About.qml")
0036             enabled: pageStack.layers.depth <= 1
0037         }
0038     }
0039 }