summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qt-ui/mainwindow.cpp6
-rw-r--r--qt-ui/mainwindow.h13
2 files changed, 16 insertions, 3 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index 851d1aa1c..d3e5603be 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -2,10 +2,16 @@
#include "ui_mainwindow.h"
#include <QVBoxLayout>
+#include <QtDebug>
MainWindow::MainWindow() : ui(new Ui::MainWindow())
{
ui->setupUi(this);
}
+void MainWindow::on_actionNew_triggered()
+{
+ qDebug() << "actionNew";
+}
+
#include "mainwindow.moc"
diff --git a/qt-ui/mainwindow.h b/qt-ui/mainwindow.h
index 9e15e58b4..6361870b2 100644
--- a/qt-ui/mainwindow.h
+++ b/qt-ui/mainwindow.h
@@ -3,6 +3,7 @@
#include <QMainWindow>
+
namespace Ui
{
class MainWindow;
@@ -13,12 +14,18 @@ class DiveNotes;
class Stats;
class Equipment;
-class MainWindow : public QMainWindow{
- Q_OBJECT
+class MainWindow : public QMainWindow
+{
+Q_OBJECT
public:
MainWindow();
+
+private Q_SLOTS:
+
+ void on_actionNew_triggered();
+
private:
Ui::MainWindow *ui;
};
-#endif \ No newline at end of file
+#endif