diff options
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r-- | qt-ui/mainwindow.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 06e6b7734..b61f962c4 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -32,6 +32,7 @@ #include "subsurfacewebservices.h" #include "divecomputermanagementdialog.h" #include "simplewidgets.h" +#include "diveplanner.h" static MainWindow* instance = 0; @@ -181,6 +182,16 @@ void MainWindow::on_actionPrint_triggered() qDebug("actionPrint"); } +void MainWindow::on_actionDivePlanner_triggered() +{ + DivePlanner *planner = DivePlanner::instance(); + if (planner->exec() == QDialog::Accepted){ + struct dive *d = planner->getDive(); + qDebug() << "Finish me."; + } +} + + void MainWindow::on_actionPreferences_triggered() { PreferencesDialog::instance()->show(); |