diff options
author | Robert C. Helling <helling@atdotde.de> | 2014-06-10 17:40:02 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-06-12 09:30:46 -0700 |
commit | 708f19830e2a64c3ab9ef6bfd12a40d7c326870f (patch) | |
tree | 17f05eae8695d6432effb6cabda46fc998c2477c /qt-ui/mainwindow.cpp | |
parent | 1644be22ac56a716d04b52a5fec47938cdffa89a (diff) | |
download | subsurface-708f19830e2a64c3ab9ef6bfd12a40d7c326870f.tar.gz |
Planner: New plannerSettingsWidget
In planner mode, this replaces the globe with the dive plan and introduces
a new plannerSettingsWidget in the diveListPane. All new fields are still
disfunctional. This is WIP.
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r-- | qt-ui/mainwindow.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index d758515e6..a57965ea7 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -133,6 +133,7 @@ void MainWindow::refreshDisplay(bool doRecreateDiveList) if (doRecreateDiveList) recreateDiveList(); ui.diveListPane->setCurrentIndex(0); // switch to the dive list + ui.globePane->setCurrentIndex(0); ui.ListWidget->setEnabled(true); ui.ListWidget->setFocus(); WSInfoModel::instance()->updateInfo(); @@ -472,6 +473,7 @@ void MainWindow::on_actionDivePlanner_triggered() ui.ListWidget->reload(DiveTripModel::CURRENT); ui.ListWidget->setEnabled(false); ui.diveListPane->setCurrentIndex(1); // switch to the plan output + ui.globePane->setCurrentIndex(1); } void MainWindow::on_actionAddDive_triggered() |