From 24657f557e1fb8fc2a12666b60ba8aeafed07632 Mon Sep 17 00:00:00 2001 From: Corwin McKnight Date: Fri, 5 May 2017 01:08:01 -0700 Subject: [PATCH] Qt: Port help menu items. --- Source/Core/DolphinQt2/MenuBar.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Source/Core/DolphinQt2/MenuBar.cpp b/Source/Core/DolphinQt2/MenuBar.cpp index 417156552c..4f3997ffd8 100644 --- a/Source/Core/DolphinQt2/MenuBar.cpp +++ b/Source/Core/DolphinQt2/MenuBar.cpp @@ -173,10 +173,20 @@ void MenuBar::AddViewMenu() void MenuBar::AddHelpMenu() { QMenu* help_menu = addMenu(tr("Help")); + QAction* website = help_menu->addAction(tr("Website")); + connect(website, &QAction::triggered, this, + []() { QDesktopServices::openUrl(QUrl(QStringLiteral("https://dolphin-emu.org/"))); }); QAction* documentation = help_menu->addAction(tr("Online Documentation")); - connect(documentation, &QAction::triggered, this, [=]() { + connect(documentation, &QAction::triggered, this, []() { QDesktopServices::openUrl(QUrl(QStringLiteral("https://dolphin-emu.org/docs/guides"))); }); + QAction* github = help_menu->addAction(tr("GitHub Repository")); + connect(github, &QAction::triggered, this, []() { + QDesktopServices::openUrl(QUrl(QStringLiteral("https://github.com/dolphin-emu/dolphin"))); + }); + + help_menu->addSeparator(); + help_menu->addAction(tr("About"), this, SIGNAL(ShowAboutDialog())); }