Add working show documentation and report bug actions

This commit is contained in:
Arjen Hiemstra 2015-04-03 17:56:10 +02:00
parent ef7b224abc
commit 502133a006
2 changed files with 18 additions and 5 deletions

View file

@ -91,7 +91,9 @@ UM.MainWindow {
//: Help menu //: Help menu
title: qsTr("&Help"); title: qsTr("&Help");
MenuItem { action: actions.help; } MenuItem { action: actions.documentation; }
MenuItem { action: actions.reportBug; }
MenuSeparator { }
MenuItem { action: actions.about; } MenuItem { action: actions.about; }
} }
} }
@ -254,6 +256,9 @@ UM.MainWindow {
preferences.onTriggered: preferences.visible = true; preferences.onTriggered: preferences.visible = true;
configureMachines.onTriggered: { preferences.visible = true; preferences.setPage(2); } configureMachines.onTriggered: { preferences.visible = true; preferences.setPage(2); }
documentation.onTriggered: Qt.openUrlExternally("https://ultimaker.com/en/support");
reportBug.onTriggered: Qt.openUrlExternally("https://github.com/Ultimaker/PluggableCura/issues");
} }
Menu { Menu {

View file

@ -25,7 +25,8 @@ Item {
property alias configureMachines: settingsAction; property alias configureMachines: settingsAction;
property alias preferences: preferencesAction; property alias preferences: preferencesAction;
property alias help: helpAction; property alias documentation: documentationAction;
property alias reportBug: reportBugAction;
property alias about: aboutAction; property alias about: aboutAction;
Action { Action {
@ -73,13 +74,20 @@ Item {
} }
Action { Action {
id: helpAction; id: documentationAction;
//: Show Manual action //: Show Online Documentation action
text: qsTr("Show Manual"); text: qsTr("Show Online Documentation");
iconName: "help-contents"; iconName: "help-contents";
shortcut: StandardKey.Help; shortcut: StandardKey.Help;
} }
Action {
id: reportBugAction;
//: Report a Bug Action
text: qsTr("Report a Bug");
iconName: "tools-report-bug";
}
Action { Action {
id: aboutAction; id: aboutAction;
//: About action //: About action