Add Help > Tutorial menu item that goest to serverless tutorial

This commit is contained in:
David Rowe 2020-06-16 12:25:28 +12:00
parent f68810f766
commit f11091cab4
3 changed files with 8 additions and 0 deletions

View file

@ -3858,6 +3858,11 @@ void Application::showHelp() {
//InfoView::show(INFO_HELP_PATH, false, queryString.toString());
}
void Application::gotoTutorial() {
const QString TUTORIAL_ADDRESS = "file:///~/serverless/tutorial.json";
DependencyManager::get<AddressManager>()->handleLookupString(TUTORIAL_ADDRESS);
}
void Application::resizeEvent(QResizeEvent* event) {
resizeGL();
}

View file

@ -427,6 +427,7 @@ public slots:
#endif
static void showHelp();
static void gotoTutorial();
void cycleCamera();
void cameraModeChanged();

View file

@ -816,6 +816,8 @@ Menu::Menu() {
addActionToQMenuAndActionHash(helpMenu, "Controls Reference", 0, qApp, SLOT(showHelp()));
addActionToQMenuAndActionHash(helpMenu, "Tutorial", 0, qApp, SLOT(gotoTutorial()));
helpMenu->addSeparator();
// Help > Release Notes