mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Planner: add dive plan output area that replaces dive list
When switching to / from plan mode, we switch to show either the dive plan detail widget, or the dive list widget. So far this widget does nothing. This just makes sure it's there. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
e74914fdd0
commit
e93bf1e559
2 changed files with 54 additions and 18 deletions
|
@ -131,6 +131,7 @@ void MainWindow::refreshDisplay(bool doRecreateDiveList)
|
|||
ui.globe->reload();
|
||||
if (doRecreateDiveList)
|
||||
recreateDiveList();
|
||||
ui.diveListPane->setCurrentIndex(0); // switch to the dive list
|
||||
ui.ListWidget->setEnabled(true);
|
||||
ui.ListWidget->setFocus();
|
||||
WSInfoModel::instance()->updateInfo();
|
||||
|
@ -437,6 +438,7 @@ void MainWindow::on_actionDivePlanner_triggered()
|
|||
// reload and then disable the dive list
|
||||
ui.ListWidget->reload(DiveTripModel::CURRENT);
|
||||
ui.ListWidget->setEnabled(false);
|
||||
ui.diveListPane->setCurrentIndex(1); // switch to the plan output
|
||||
}
|
||||
|
||||
void MainWindow::on_actionAddDive_triggered()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue