diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-05-14 08:18:26 -0300 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2013-05-14 08:18:26 -0300 |
commit | b0374047dd6a31d8b16c6991ee0ffc51c198569e (patch) | |
tree | cf950820fc57fdeaac6ae81f43b80b62a73e4054 /qt-ui/mainwindow.cpp | |
parent | 5868b37e6bde1eaa6da09aac5e269557d94d7641 (diff) | |
download | subsurface-b0374047dd6a31d8b16c6991ee0ffc51c198569e.tar.gz |
code to show profile again
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r-- | qt-ui/mainwindow.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 58cb86286..60a4623c7 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -42,6 +42,15 @@ MainWindow::MainWindow() : ui(new Ui::MainWindow()), ui->ListWidget->setCurrentIndex(sortModel->index(0,0, firstDiveOrTrip)); else ui->ListWidget->setCurrentIndex(firstDiveOrTrip); + + connect(ui->ListWidget, SIGNAL(currentDiveChanged(int)), this, SLOT(current_dive_changed(int))); +} + +void MainWindow::current_dive_changed(int divenr) +{ + select_dive(divenr); + redrawProfile(); + ui->InfoWidget->updateDiveInfo(divenr); } void MainWindow::redrawProfile() |