UI: Add menu to visit website to basic main window
parent
c6a3287a16
commit
f15965e721
|
@ -238,6 +238,7 @@ Basic.MainMenu.Edit.AdvAudio="&Advanced Audio Properties"
|
|||
|
||||
# basic mode help menu
|
||||
Basic.MainMenu.Help="&Help"
|
||||
Basic.MainMenu.Help.Website="Visit &Website"
|
||||
Basic.MainMenu.Help.Logs="&Log Files"
|
||||
Basic.MainMenu.Help.Logs.ShowLogs="&Show Log Files"
|
||||
Basic.MainMenu.Help.Logs.UploadCurrentLog="Upload &Current Log File"
|
||||
|
|
|
@ -559,6 +559,8 @@
|
|||
<addaction name="actionUploadLastLog"/>
|
||||
<addaction name="actionViewCurrentLog"/>
|
||||
</widget>
|
||||
<addaction name="actionWebsite"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="menuLogFiles"/>
|
||||
<addaction name="actionCheckForUpdates"/>
|
||||
</widget>
|
||||
|
@ -904,6 +906,11 @@
|
|||
<string>Basic.MainMenu.Edit.AdvAudio</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionWebsite">
|
||||
<property name="text">
|
||||
<string>Basic.MainMenu.Help.Website</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
|
|
|
@ -2726,6 +2726,12 @@ void OBSBasic::on_settingsButton_clicked()
|
|||
settings.exec();
|
||||
}
|
||||
|
||||
void OBSBasic::on_actionWebsite_triggered()
|
||||
{
|
||||
QUrl url = QUrl("https://obsproject.com", QUrl::TolerantMode);
|
||||
QDesktopServices::openUrl(url);
|
||||
}
|
||||
|
||||
void OBSBasic::on_preview_customContextMenuRequested(const QPoint &pos)
|
||||
{
|
||||
CreateSourcePopupMenu(ui->sources->currentItem(), true);
|
||||
|
|
|
@ -311,6 +311,8 @@ private slots:
|
|||
void on_recordButton_clicked();
|
||||
void on_settingsButton_clicked();
|
||||
|
||||
void on_actionWebsite_triggered();
|
||||
|
||||
void on_preview_customContextMenuRequested(const QPoint &pos);
|
||||
void on_previewDisabledLabel_customContextMenuRequested(
|
||||
const QPoint &pos);
|
||||
|
|
Loading…
Reference in New Issue