summaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-21 09:59:41 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-21 09:59:41 -0300
commitbe31a53b0d7090083f8b3a2ed923d0ed8b61000f (patch)
treeb76ba75915b6061abaffd631a9f39f01b7c28b7d /qt-ui/maintab.cpp
parent126bc8cfa3fa60707f87f0920043c44db0d2c513 (diff)
downloadsubsurface-be31a53b0d7090083f8b3a2ed923d0ed8b61000f.tar.gz
Added support for visualization the Weigthssystems on the Equipment Tab.
This patch adds support showing and for editing weigthsystems in the equipment tab, so, now the two things that are missing are 'edit' and 'delete', wich are quite easy to do. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r--qt-ui/maintab.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index bb5169e52..848f068a2 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -203,6 +203,7 @@ void MainTab::updateDiveInfo(int dive)
ui->longestAllText->setText(get_time_string(stats_selection.longest_time.seconds, 0));
ui->shortestAllText->setText(get_time_string(stats_selection.shortest_time.seconds, 0));
cylindersModel->setDive(d);
+ weightModel->setDive(d);
} else {
/* make the fields read-only */
ui->location->setReadOnly(true);
@@ -228,6 +229,7 @@ void MainTab::updateDiveInfo(int dive)
ui->gasUsedText->clear();
ui->airPressureText->clear();
cylindersModel->clear();
+ weightModel->clear();
}
/* statisticsTab*/
/* we can access the stats_selection struct, but how do we ensure the relevant dives are selected