Added Help menu item to point to online documentation

This commit is contained in:
Srivats P 2016-06-23 18:52:50 +05:30
parent 75efed5ec4
commit 0ab84e581d
3 changed files with 15 additions and 0 deletions

View File

@ -34,11 +34,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
#include "fileformat.pb.h"
#include <QDesktopServices>
#include <QDockWidget>
#include <QFileDialog>
#include <QMessageBox>
#include <QProcess>
#include <QProgressDialog>
#include <QUrl>
extern const char* version;
extern const char* revision;
@ -272,6 +274,11 @@ void MainWindow::on_actionViewRestoreDefaults_triggered()
actionViewShowMyReservedPortsOnly->setChecked(false);
}
void MainWindow::on_actionHelpOnline_triggered()
{
QDesktopServices::openUrl(QUrl("http://ostinato.org/docs"));
}
void MainWindow::on_actionHelpAbout_triggered()
{
QDialog *aboutDialog = new QDialog;

View File

@ -55,6 +55,7 @@ public slots:
void on_actionSaveSession_triggered();
void on_actionPreferences_triggered();
void on_actionViewRestoreDefaults_triggered();
void on_actionHelpOnline_triggered();
void on_actionHelpAbout_triggered();
private slots:

View File

@ -31,6 +31,8 @@
<property name="title" >
<string>&amp;Help</string>
</property>
<addaction name="actionHelpOnline" />
<addaction name="separator" />
<addaction name="actionHelpAbout" />
<addaction name="actionAboutQt" />
</widget>
@ -101,6 +103,11 @@
<string>Save Session ...</string>
</property>
</action>
<action name="actionHelpOnline" >
<property name="text" >
<string>Help (Online)</string>
</property>
</action>
</widget>
<resources>
<include location="ostinato.qrc" />