Skip to content
This repository was archived by the owner on Dec 6, 2025. It is now read-only.

Commit febad98

Browse files
TheTechnician27SternXD
authored andcommitted
Qt: Add Wiki and Documentation to 'Help' menu
1 parent 6867418 commit febad98

File tree

215 files changed

+524
-2087
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

215 files changed

+524
-2087
lines changed

pcsx2-qt/AboutDialog.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,16 @@ QString AboutDialog::getThirdPartyLicensesUrl()
8989
return GetDocFileUrl("ThirdPartyLicenses.html");
9090
}
9191

92+
QString AboutDialog::getWikiUrl()
93+
{
94+
return QString::fromUtf8(PCSX2_WIKI_URL);
95+
}
96+
97+
QString AboutDialog::getDocumentationUrl()
98+
{
99+
return QString::fromUtf8(PCSX2_DOCUMENTATION_URL);
100+
}
101+
92102
QString AboutDialog::getDiscordServerUrl()
93103
{
94104
return QString::fromUtf8(PCSX2_DISCORD_URL);

pcsx2-qt/AboutDialog.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ class AboutDialog final : public QDialog
1919
static QString getGitHubRepositoryUrl();
2020
static QString getLicenseUrl();
2121
static QString getThirdPartyLicensesUrl();
22+
static QString getWikiUrl();
23+
static QString getDocumentationUrl();
2224
static QString getDiscordServerUrl();
2325

2426
static void showHTMLDialog(QWidget* parent, const QString& title, const QString& url);

pcsx2-qt/MainWindow.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,8 @@ void MainWindow::connectSignals()
345345
connect(m_ui.actionViewGameProperties, &QAction::triggered, this, &MainWindow::onViewGamePropertiesActionTriggered);
346346
connect(m_ui.actionGitHubRepository, &QAction::triggered, this, &MainWindow::onGitHubRepositoryActionTriggered);
347347
connect(m_ui.actionSupportForums, &QAction::triggered, this, &MainWindow::onSupportForumsActionTriggered);
348+
connect(m_ui.actionWiki, &QAction::triggered, this, &MainWindow::onWikiActionTriggered);
349+
connect(m_ui.actionDocumentation, &QAction::triggered, this, &MainWindow::onDocumentationActionTriggered);
348350
connect(m_ui.actionDiscordServer, &QAction::triggered, this, &MainWindow::onDiscordServerActionTriggered);
349351
connect(m_ui.actionAboutQt, &QAction::triggered, qApp, &QApplication::aboutQt);
350352
connect(m_ui.actionAbout, &QAction::triggered, this, &MainWindow::onAboutActionTriggered);
@@ -1598,6 +1600,16 @@ void MainWindow::onSupportForumsActionTriggered()
15981600
QtUtils::OpenURL(this, AboutDialog::getSupportForumsUrl());
15991601
}
16001602

1603+
void MainWindow::onWikiActionTriggered()
1604+
{
1605+
QtUtils::OpenURL(this, AboutDialog::getWikiUrl());
1606+
}
1607+
1608+
void MainWindow::onDocumentationActionTriggered()
1609+
{
1610+
QtUtils::OpenURL(this, AboutDialog::getDocumentationUrl());
1611+
}
1612+
16011613
void MainWindow::onDiscordServerActionTriggered()
16021614
{
16031615
QtUtils::OpenURL(this, AboutDialog::getDiscordServerUrl());

pcsx2-qt/MainWindow.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ private Q_SLOTS:
157157
void onViewGamePropertiesActionTriggered();
158158
void onGitHubRepositoryActionTriggered();
159159
void onSupportForumsActionTriggered();
160+
void onWikiActionTriggered();
161+
void onDocumentationActionTriggered();
160162
void onDiscordServerActionTriggered();
161163
void onAboutActionTriggered();
162164
void onToolsOpenDataDirectoryTriggered();

pcsx2-qt/MainWindow.ui

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@
117117
</property>
118118
<addaction name="actionGitHubRepository"/>
119119
<addaction name="actionSupportForums"/>
120+
<addaction name="actionWiki"/>
121+
<addaction name="actionDocumentation"/>
120122
<addaction name="actionDiscordServer"/>
121123
<addaction name="separator"/>
122124
<addaction name="actionCheckForUpdates"/>
@@ -514,6 +516,22 @@
514516
<string>Support &amp;Forums...</string>
515517
</property>
516518
</action>
519+
<action name="actionWiki">
520+
<property name="icon">
521+
<iconset theme="book"/>
522+
</property>
523+
<property name="text">
524+
<string>PCSX2 &amp;Wiki...</string>
525+
</property>
526+
</action>
527+
<action name="actionDocumentation">
528+
<property name="icon">
529+
<iconset theme="booklet"/>
530+
</property>
531+
<property name="text">
532+
<string>D&amp;ocumentation...</string>
533+
</property>
534+
</action>
517535
<action name="actionDiscordServer">
518536
<property name="icon">
519537
<iconset theme="discord"/>
Lines changed: 1 addition & 13 deletions
Loading
Lines changed: 1 addition & 1 deletion
Loading
Lines changed: 1 addition & 6 deletions
Loading
Lines changed: 1 addition & 41 deletions
Loading
Lines changed: 1 addition & 47 deletions
Loading

0 commit comments

Comments
 (0)