diff options
| author | Corwin McKnight <lioneltabre@gmail.com> | 2017-05-05 01:08:01 -0700 |
|---|---|---|
| committer | Corwin McKnight <lioneltabre@gmail.com> | 2017-05-07 03:47:10 -0700 |
| commit | 24657f557e1fb8fc2a12666b60ba8aeafed07632 (patch) | |
| tree | 5eb3a2d846d6ff242f1138bb2929937a0d2c7878 /Source/Core/DolphinQt2/MenuBar.cpp | |
| parent | ef4a1f0ec7dd574a58d4737c112fc2584cd2a7fe (diff) | |
Qt: Port help menu items.
Diffstat (limited to 'Source/Core/DolphinQt2/MenuBar.cpp')
| -rw-r--r-- | Source/Core/DolphinQt2/MenuBar.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
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())); } |
