Merge pull request #6638 from 67hz/enhancement/help-menu-help-link-6472

#6472
This commit is contained in:
Jnewbon 2020-03-19 16:15:19 +00:00 committed by GitHub
commit a1421bf13c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 0 deletions

View file

@ -17,6 +17,7 @@
*/
#define DOWNLOAD_URL "http://symless.com/?source=gui"
#define HELP_URL "http://symless.com/help?source=gui"
#include <iostream>
@ -312,6 +313,8 @@ void MainWindow::createMenuBar()
m_pMenuWindow->addAction(m_pActionMinimize);
m_pMenuWindow->addAction(m_pActionRestore);
m_pMenuHelp->addAction(m_pActionAbout);
m_pMenuHelp->addAction(m_pActionHelp);
setMenuBar(m_pMenuBar);
}
@ -1258,6 +1261,11 @@ void MainWindow::on_m_pActionAbout_triggered()
dlg.exec();
}
void MainWindow::on_m_pActionHelp_triggered()
{
QDesktopServices::openUrl(QUrl(HELP_URL));
}
void MainWindow::updateZeroconfService()
{
#ifndef SYNERGY_ENTERPRISE

View file

@ -149,6 +149,7 @@ public slots:
void on_m_pButtonConfigureServer_clicked();
bool on_m_pActionSave_triggered();
void on_m_pActionAbout_triggered();
void on_m_pActionHelp_triggered();
void on_m_pActionSettings_triggered();
void on_m_pActivate_triggered();
void synergyFinished(int exitCode, QProcess::ExitStatus);

View file

@ -535,6 +535,14 @@
<string notr="true"/>
</property>
</action>
<action name="m_pActionHelp">
<property name="text">
<string>Visit &amp;help site</string>
</property>
<property name="shortcut">
<string notr="true"/>
</property>
</action>
<action name="m_pActionQuit">
<property name="text">
<string>&amp;Quit</string>