mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
About dialog displays version numbers and handy links
This commit is contained in:
@ -3,8 +3,10 @@
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#include <QAction>
|
||||
#include <QActionGroup>
|
||||
#include <QDesktopServices>
|
||||
#include <QUrl>
|
||||
|
||||
#include "DolphinQt2/AboutDialog.h"
|
||||
#include "DolphinQt2/MenuBar.h"
|
||||
#include "DolphinQt2/Settings.h"
|
||||
|
||||
@ -17,7 +19,7 @@ MenuBar::MenuBar(QWidget* parent)
|
||||
addMenu(tr("Options"));
|
||||
addMenu(tr("Tools"));
|
||||
AddViewMenu();
|
||||
addMenu(tr("Help"));
|
||||
AddHelpMenu();
|
||||
}
|
||||
|
||||
void MenuBar::AddFileMenu()
|
||||
@ -35,6 +37,17 @@ void MenuBar::AddViewMenu()
|
||||
AddTableColumnsMenu(view_menu);
|
||||
}
|
||||
|
||||
void MenuBar::AddHelpMenu()
|
||||
{
|
||||
QMenu* help_menu = addMenu(tr("Help"));
|
||||
QAction* documentation = help_menu->addAction(tr("Online Documentation"));
|
||||
connect(documentation, &QAction::triggered, this, [=]() {
|
||||
QDesktopServices::openUrl(QUrl(QStringLiteral("https://dolphin-emu.org/docs/guides")));
|
||||
});
|
||||
help_menu->addAction(tr("About"), this, SIGNAL(ShowAboutDialog()));
|
||||
}
|
||||
|
||||
|
||||
void MenuBar::AddGameListTypeSection(QMenu* view_menu)
|
||||
{
|
||||
QAction* table_view = view_menu->addAction(tr("Table"));
|
||||
|
Reference in New Issue
Block a user