mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Update "Help" menu to match Windows version
This commit is contained in:
parent
7d3552ae34
commit
8d8bc98e97
2 changed files with 19 additions and 4 deletions
|
@ -351,11 +351,21 @@ void MainWindow::forumAct()
|
|||
QDesktopServices::openUrl(QUrl("https://forums.ppsspp.org/"));
|
||||
}
|
||||
|
||||
void MainWindow::goldAct()
|
||||
{
|
||||
QDesktopServices::openUrl(QUrl("https://central.ppsspp.org/buygold"));
|
||||
}
|
||||
|
||||
void MainWindow::gitAct()
|
||||
{
|
||||
QDesktopServices::openUrl(QUrl("https://github.com/hrydgard/ppsspp/"));
|
||||
}
|
||||
|
||||
void MainWindow::discordAct()
|
||||
{
|
||||
QDesktopServices::openUrl(QUrl("https://discord.gg/5NJB6dD"));
|
||||
}
|
||||
|
||||
void MainWindow::aboutAct()
|
||||
{
|
||||
QMessageBox::about(this, "About", QString("PPSSPP Qt %1\n\n"
|
||||
|
@ -598,10 +608,13 @@ void MainWindow::createMenus()
|
|||
|
||||
// Help
|
||||
MenuTree* helpMenu = new MenuTree(this, menuBar(), QT_TR_NOOP("&Help"));
|
||||
helpMenu->add(new MenuAction(this, SLOT(websiteAct()), QT_TR_NOOP("Official &website"), QKeySequence::HelpContents));
|
||||
helpMenu->add(new MenuAction(this, SLOT(forumAct()), QT_TR_NOOP("Official &forum")));
|
||||
helpMenu->add(new MenuAction(this, SLOT(gitAct()), QT_TR_NOOP("&GitHub")));
|
||||
helpMenu->add(new MenuAction(this, SLOT(aboutAct()), QT_TR_NOOP("&About PPSSPP..."), QKeySequence::WhatsThis));
|
||||
helpMenu->add(new MenuAction(this, SLOT(websiteAct()), QT_TR_NOOP("Visit www.&ppsspp.org")));
|
||||
helpMenu->add(new MenuAction(this, SLOT(forumAct()), QT_TR_NOOP("PPSSPP &forums")));
|
||||
helpMenu->add(new MenuAction(this, SLOT(goldAct()), QT_TR_NOOP("Buy &Gold")));
|
||||
helpMenu->add(new MenuAction(this, SLOT(gitAct()), QT_TR_NOOP("Git&Hub")));
|
||||
helpMenu->add(new MenuAction(this, SLOT(discordAct()), QT_TR_NOOP("Discord")));
|
||||
helpMenu->addSeparator();
|
||||
helpMenu->add(new MenuAction(this, SLOT(aboutAct()), QT_TR_NOOP("&About PPSSPP...")));
|
||||
|
||||
retranslate();
|
||||
}
|
||||
|
|
|
@ -147,7 +147,9 @@ private slots:
|
|||
// Help
|
||||
void websiteAct();
|
||||
void forumAct();
|
||||
void goldAct();
|
||||
void gitAct();
|
||||
void discordAct();
|
||||
void aboutAct();
|
||||
|
||||
// Others
|
||||
|
|
Loading…
Add table
Reference in a new issue