mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Improve statistic on used gas
This raises the maximum number of gas mixes listed to 20 and also changes the layout / design of the stats tab to make it much more attractive. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
6998dcdf6a
commit
e6fe4760a0
2 changed files with 25 additions and 25 deletions
|
@ -533,10 +533,10 @@ void MainTab::updateDiveInfo(int dive)
|
|||
// now let's get some gas use statistics
|
||||
QVector<QPair<QString, int> > gasUsed;
|
||||
QString gasUsedString;
|
||||
QPair<QString, int> topGases[8] = { };
|
||||
QPair<QString, int> topGases[20] = { };
|
||||
volume_t vol;
|
||||
selectedDivesGasUsed(gasUsed);
|
||||
for (int j = 0; j < 8; j++) {
|
||||
for (int j = 0; j < 20; j++) {
|
||||
if (gasUsed.isEmpty())
|
||||
break;
|
||||
QPair<QString, int> gasPair = gasUsed.last();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue