mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-24 22:34:54 +00:00
Merge pull request #5375 from Ryanel/qt-help-menu
Qt: Port help menu items over
This commit is contained in:
commit
5535afcb2a
1 changed files with 11 additions and 1 deletions
|
@ -173,10 +173,20 @@ void MenuBar::AddViewMenu()
|
||||||
void MenuBar::AddHelpMenu()
|
void MenuBar::AddHelpMenu()
|
||||||
{
|
{
|
||||||
QMenu* help_menu = addMenu(tr("Help"));
|
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"));
|
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")));
|
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()));
|
help_menu->addAction(tr("About"), this, SIGNAL(ShowAboutDialog()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue