mirror of
https://github.com/lubosz/overte.git
synced 2025-08-16 17:58:40 +02:00
Add Help > Tutorial menu item that goest to serverless tutorial
This commit is contained in:
parent
f68810f766
commit
f11091cab4
3 changed files with 8 additions and 0 deletions
|
@ -3858,6 +3858,11 @@ void Application::showHelp() {
|
||||||
//InfoView::show(INFO_HELP_PATH, false, queryString.toString());
|
//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) {
|
void Application::resizeEvent(QResizeEvent* event) {
|
||||||
resizeGL();
|
resizeGL();
|
||||||
}
|
}
|
||||||
|
|
|
@ -427,6 +427,7 @@ public slots:
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void showHelp();
|
static void showHelp();
|
||||||
|
static void gotoTutorial();
|
||||||
|
|
||||||
void cycleCamera();
|
void cycleCamera();
|
||||||
void cameraModeChanged();
|
void cameraModeChanged();
|
||||||
|
|
|
@ -816,6 +816,8 @@ Menu::Menu() {
|
||||||
|
|
||||||
addActionToQMenuAndActionHash(helpMenu, "Controls Reference", 0, qApp, SLOT(showHelp()));
|
addActionToQMenuAndActionHash(helpMenu, "Controls Reference", 0, qApp, SLOT(showHelp()));
|
||||||
|
|
||||||
|
addActionToQMenuAndActionHash(helpMenu, "Tutorial", 0, qApp, SLOT(gotoTutorial()));
|
||||||
|
|
||||||
helpMenu->addSeparator();
|
helpMenu->addSeparator();
|
||||||
|
|
||||||
// Help > Release Notes
|
// Help > Release Notes
|
||||||
|
|
Loading…
Reference in a new issue