mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-19 17:49:14 +00:00
UI: Add help portal link to help menu
This commit is contained in:
parent
2c20d42815
commit
2959b22bfb
|
@ -527,6 +527,7 @@ Basic.MainMenu.Tools="&Tools"
|
|||
|
||||
# basic mode help menu
|
||||
Basic.MainMenu.Help="&Help"
|
||||
Basic.MainMenu.Help.HelpPortal="Help &Portal"
|
||||
Basic.MainMenu.Help.Website="Visit &Website"
|
||||
Basic.MainMenu.Help.Logs="&Log Files"
|
||||
Basic.MainMenu.Help.Logs.ShowLogs="&Show Log Files"
|
||||
|
|
|
@ -134,6 +134,7 @@
|
|||
<addaction name="actionUploadLastLog"/>
|
||||
<addaction name="actionViewCurrentLog"/>
|
||||
</widget>
|
||||
<addaction name="actionHelpPortal"/>
|
||||
<addaction name="actionWebsite"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="menuLogFiles"/>
|
||||
|
@ -1576,6 +1577,11 @@
|
|||
<string>Basic.Main.Controls</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionHelpPortal">
|
||||
<property name="text">
|
||||
<string>Basic.MainMenu.Help.HelpPortal</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
|
|
|
@ -5017,6 +5017,12 @@ void OBSBasic::on_settingsButton_clicked()
|
|||
on_action_Settings_triggered();
|
||||
}
|
||||
|
||||
void OBSBasic::on_actionHelpPortal_triggered()
|
||||
{
|
||||
QUrl url = QUrl("https://obsproject.com/help", QUrl::TolerantMode);
|
||||
QDesktopServices::openUrl(url);
|
||||
}
|
||||
|
||||
void OBSBasic::on_actionWebsite_triggered()
|
||||
{
|
||||
QUrl url = QUrl("https://obsproject.com", QUrl::TolerantMode);
|
||||
|
|
|
@ -630,6 +630,7 @@ private slots:
|
|||
void on_recordButton_clicked();
|
||||
void on_settingsButton_clicked();
|
||||
|
||||
void on_actionHelpPortal_triggered();
|
||||
void on_actionWebsite_triggered();
|
||||
|
||||
void on_preview_customContextMenuRequested(const QPoint &pos);
|
||||
|
|
Loading…
Reference in a new issue