diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-06-10 11:45:20 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-06-10 11:45:20 -0700 |
commit | e6fe4760a09898f252c1cda29e59d5ee5d7bbc81 (patch) | |
tree | 52c5c96776835c7e4f251eaa7f42fd1e8d6f63c7 /qt-ui/maintab.cpp | |
parent | 6998dcdf6ab19b6045dffbddfc6998b6458f3d96 (diff) | |
download | subsurface-e6fe4760a09898f252c1cda29e59d5ee5d7bbc81.tar.gz |
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>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r-- | qt-ui/maintab.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 5b8985b3e..ae2876bab 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -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(); |