diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-08-26 08:43:37 -0300 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2013-08-26 08:43:37 -0300 |
commit | 0a043528f72a47b14cfe3708a8f133a29ad17d55 (patch) | |
tree | 80f88141bd2f9a9264ce48735f26c74446040074 /qt-ui/mainwindow.cpp | |
parent | 2fb2918607ffb857543b9060fd9f18f0d07ab780 (diff) | |
download | subsurface-0a043528f72a47b14cfe3708a8f133a29ad17d55.tar.gz |
Added a new widget to control the Planner
Added a new widget to control the DivePlanner, now we
have two widgets, a graphics one and a qt sidget based one.
the Technical divers will most likely use the QtWidget one
while the hobbists will most likely use the QGraphicsView
one. there's not a option to choose one, they both will
appear at the same time.
Next step: make the screens to work.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.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 a78b84565..252b1bdb6 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -238,12 +238,14 @@ void MainWindow::on_actionDivePlanner_triggered() { disableDcShortcuts(); ui->stackedWidget->setCurrentIndex(1); + ui->infoPane->setCurrentIndex(1); } void MainWindow::showProfile() { enableDcShortcuts(); ui->stackedWidget->setCurrentIndex(0); + ui->infoPane->setCurrentIndex(0); } |