Add installation and releasenotes sections to the user manual.
This commit is contained in:
parent
61346ae95d
commit
6b8c54398d
12 changed files with 71 additions and 20 deletions
|
|
@ -8,7 +8,7 @@ void ShowAboutDialog(QWidget *parent)
|
|||
QString pgLabVersionString = "0.2";
|
||||
QString releaseNotesUrl = "file:///" + QCoreApplication::applicationDirPath() + "\\releasenotes.html";
|
||||
QString year = QString::fromLatin1(__DATE__, 11).right(4);
|
||||
QMessageBox::about(parent, "pgLab " + pgLabVersionString, QMessageBox::tr(
|
||||
QMessageBox::about(parent, "pgLab", QMessageBox::tr(
|
||||
"<h1>Version %3</h1>"
|
||||
"<p><a href=\"%2\">Releasenotes</a></p>"
|
||||
"<p>Copyrights 2016-%1, Eelke Klein, All Rights Reserved.</p>"
|
||||
|
|
|
|||
|
|
@ -3,13 +3,13 @@
|
|||
#include "ui_ConnectionManagerWindow.h"
|
||||
#include "MasterController.h"
|
||||
#include "ConnectionController.h"
|
||||
#include "ConnectionListModel.h"
|
||||
#include <QDesktopServices>
|
||||
#include <QDir>
|
||||
#include <QMessageBox>
|
||||
#include <QStandardItemModel>
|
||||
#include "ConnectionListModel.h"
|
||||
|
||||
|
||||
#include <QDir>
|
||||
#include <QStandardPaths>
|
||||
#include <QUrl>
|
||||
|
||||
ConnectionManagerWindow::ConnectionManagerWindow(MasterController *master, QWidget *parent)
|
||||
: QMainWindow(parent)
|
||||
|
|
@ -109,3 +109,9 @@ void ConnectionManagerWindow::on_actionAbout_triggered()
|
|||
ShowAboutDialog(this);
|
||||
}
|
||||
|
||||
|
||||
void ConnectionManagerWindow::on_actionManual_triggered()
|
||||
{
|
||||
QDesktopServices::openUrl(QString("https://eelke.gitlab.io/pgLab/#pglab-user-manual"));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -41,6 +41,8 @@ private slots:
|
|||
|
||||
void on_actionAbout_triggered();
|
||||
|
||||
void on_actionManual_triggered();
|
||||
|
||||
private:
|
||||
Ui::ConnectionManagerWindow *ui;
|
||||
MasterController *m_masterController;
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@
|
|||
<string>Fi&le</string>
|
||||
</property>
|
||||
<addaction name="actionAbout"/>
|
||||
<addaction name="actionManual"/>
|
||||
<addaction name="actionQuit_application"/>
|
||||
</widget>
|
||||
<addaction name="menuFile"/>
|
||||
|
|
@ -175,6 +176,11 @@ QToolButton {
|
|||
<string>About</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionManual">
|
||||
<property name="text">
|
||||
<string>Manual</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<resources>
|
||||
<include location="resources.qrc"/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue