diff options
author | Robert C. Helling <helling@atdotde.de> | 2014-06-03 10:06:18 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-06-03 07:23:43 -0700 |
commit | 6699e3ab3e3f617d5080720733df85cb6a9e2296 (patch) | |
tree | f5ecd9491f29d6dc5451240410dc7a33adbd5a0d /qt-ui/diveplanner.cpp | |
parent | 2785d7bc3eaaf9a2015dc2d281d7bf6136edc2c4 (diff) | |
download | subsurface-6699e3ab3e3f617d5080720733df85cb6a9e2296.tar.gz |
Add print button to planner
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/diveplanner.cpp')
-rw-r--r-- | qt-ui/diveplanner.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp index 36c8538a1..516c29126 100644 --- a/qt-ui/diveplanner.cpp +++ b/qt-ui/diveplanner.cpp @@ -277,6 +277,7 @@ DivePlannerWidget::DivePlannerWidget(QWidget *parent, Qt::WindowFlags f) : QWidg connect(ui.display_duration, SIGNAL(toggled(bool)), plannerModel, SLOT(setDisplayDuration(bool))); connect(ui.display_runtime, SIGNAL(toggled(bool)), plannerModel, SLOT(setDisplayRuntime(bool))); connect(ui.display_transitions, SIGNAL(toggled(bool)), plannerModel, SLOT(setDisplayTransitions(bool))); + connect(ui.printPlan, SIGNAL(pressed()), this, SLOT(printDecoPlan())); // Creating (and canceling) the plan connect(ui.buttonBox, SIGNAL(accepted()), plannerModel, SLOT(createPlan())); @@ -320,6 +321,11 @@ void DivePlannerWidget::decoSacChanged(const QString &decosac) plannerModel->setDecoSac(decosac.toInt()); } +void DivePlannerWidget::printDecoPlan() +{ + MainWindow::instance()->printPlan(); +} + void DivePlannerPointsModel::setPlanMode(Mode m) { mode = m; |