diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-06-22 15:57:26 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-06-22 15:57:26 -0700 |
commit | 31449dca22873e500842ab1cfcca3a211764d98a (patch) | |
tree | 51142e5b4148f25d5e416b6b621ed83447cc43cc /qt-ui/mainwindow.cpp | |
parent | 81858167ac3f69e99a1108fa305f2865417e2b81 (diff) | |
parent | 880b98ed35c2dbf3b5a015784323894c59bc7feb (diff) | |
download | subsurface-31449dca22873e500842ab1cfcca3a211764d98a.tar.gz |
Merge branch 'divePlannerTry3' of github.com:tcanabrava/subsurface
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(); |