6472 - adding help site to help menu

6472 - updating help hyperlink text
This commit is contained in:
Aaron Hinojosa 2020-03-03 16:38:57 -06:00
parent b2173efbae
commit 1fb400da44
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>
@ -290,6 +291,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);
}
@ -1228,6 +1231,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>