summaryrefslogtreecommitdiff
path: root/src/mainwindow.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cc')
-rw-r--r--src/mainwindow.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mainwindow.cc b/src/mainwindow.cc
index 8cd34ba..68b0d91 100644
--- a/src/mainwindow.cc
+++ b/src/mainwindow.cc
@@ -47,6 +47,7 @@
#include "projectserialiser.h"
#include "instrumentwidget.h"
#include "channelswidget.h"
+#include "aboutdialog.h"
#include "imageeditor.h"
@@ -100,6 +101,11 @@ MainWindow::MainWindow(Settings& settings)
testMenu->addAction(act_test);
connect(act_test, SIGNAL(triggered()), this, SLOT(test()));
+ QMenu* helpMenu = menuBar()->addMenu(tr("Help"));
+ QAction* act_about = new QAction(tr("About"), this);
+ helpMenu->addAction(act_about);
+ connect(act_about, SIGNAL(triggered()), this, SLOT(showAbout()));
+
instruments_dock = new QDockWidget(tr("Instruments:"), this);
instruments_dock->setObjectName("instruments_dock");
instruments_dock->setAllowedAreas(Qt::LeftDockWidgetArea);
@@ -599,3 +605,10 @@ void MainWindow::editProject()
dlg.show();
dlg.exec();
}
+
+void MainWindow::showAbout()
+{
+ AboutDialog dlg(this, Qt::Dialog);
+ dlg.show();
+ dlg.exec();
+}