Commit f18b3f40 authored by Sylvain Berfini's avatar Sylvain Berfini

Simplified menu to workaround issue with sub menus on Windows and Kwin

parent ff1be587
......@@ -19,8 +19,7 @@ Item {
Shortcut {
id: settingsShortcut
context: Qt.ApplicationShortcut
sequence: StandardKey.Preferences
sequence: "Ctrl+P"
onActivated: App.smartShowWindow(App.getSettingsWindow())
}
......@@ -52,9 +51,6 @@ Item {
Menu {
id: menu
Menu {
title: qsTr('options')
MenuItem {
shortcut: settingsShortcut.sequence
text: qsTr('settings')
......@@ -62,37 +58,6 @@ Item {
onTriggered: settingsShortcut.onActivated()
}
MenuSeparator {}
MenuItem {
shortcut: quitShortcut.sequence
text: qsTr('quit')
onTriggered: quitShortcut.onActivated()
}
}
// ---------------------------------------------------------------------------
// Tools.
// ---------------------------------------------------------------------------
Menu {
title: qsTr('tools')
MenuItem {
text: qsTr('audioAssistant')
onTriggered: console.log('TODO')
}
}
// ---------------------------------------------------------------------------
// Help.
// ---------------------------------------------------------------------------
Menu {
title: qsTr('help')
MenuItem {
shortcut: aboutShortcut.sequence
text: qsTr('about')
......@@ -100,13 +65,11 @@ Item {
onTriggered: aboutShortcut.onActivated()
}
MenuSeparator {}
MenuItem {
text: qsTr('checkForUpdates')
shortcut: quitShortcut.sequence
text: qsTr('quit')
onTriggered: console.log('TODO')
}
onTriggered: quitShortcut.onActivated()
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment