diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-05-21 09:33:55 -0300 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2013-05-21 09:33:55 -0300 |
commit | 126bc8cfa3fa60707f87f0920043c44db0d2c513 (patch) | |
tree | 5b66e35f618a7ea565909cd8d1d966df2ff12128 /qt-ui/maintab.cpp | |
parent | 246fbd0333c53f55b7ff7e8165b4435163a8f350 (diff) | |
download | subsurface-126bc8cfa3fa60707f87f0920043c44db0d2c513.tar.gz |
Added the code to show the cylinders from a dive.
i
Added the code to show the cylinders from a dive,
this code also already permits additions from the
interface, so the user can click 'add' and insert
what he wants there.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r-- | qt-ui/maintab.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index e9a8cd1c4..bb5169e52 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -202,6 +202,7 @@ void MainTab::updateDiveInfo(int dive) ui->averageTimeAllText->setText(get_time_string(seconds, 0)); 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); } else { /* make the fields read-only */ ui->location->setReadOnly(true); @@ -226,6 +227,7 @@ void MainTab::updateDiveInfo(int dive) ui->airTemperatureText->clear(); ui->gasUsedText->clear(); ui->airPressureText->clear(); + cylindersModel->clear(); } /* statisticsTab*/ /* we can access the stats_selection struct, but how do we ensure the relevant dives are selected @@ -292,7 +294,6 @@ void MainTab::on_delWeight_clicked() void MainTab::reload() { - cylindersModel->update(); } void MainTab::on_editAccept_clicked(bool edit) |