mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
126bc8cfa3
commit
be31a53b0d
3 changed files with 35 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue