From e93bf1e55953a7f95b4a0a5fb2a07e83e2a8c4c4 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 31 May 2014 20:59:36 -0700 Subject: 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 --- qt-ui/mainwindow.cpp | 2 ++ qt-ui/mainwindow.ui | 70 ++++++++++++++++++++++++++++++++++++++-------------- 2 files changed, 54 insertions(+), 18 deletions(-) (limited to 'qt-ui') diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 9a325cef4..910580e06 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -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() diff --git a/qt-ui/mainwindow.ui b/qt-ui/mainwindow.ui index 1fd0fa775..d73f19077 100644 --- a/qt-ui/mainwindow.ui +++ b/qt-ui/mainwindow.ui @@ -495,25 +495,59 @@ Qt::Horizontal - - - true - - - QAbstractItemView::ExtendedSelection - - - true - - - false - - - true - - - true + + + 0 + + + true + + + QAbstractItemView::ExtendedSelection + + + true + + + false + + + true + + + true + + + + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + Dive plan details + + + + + + + + -- cgit v1.2.3-70-g09d2