summaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-10 11:45:20 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-10 11:45:20 -0700
commite6fe4760a09898f252c1cda29e59d5ee5d7bbc81 (patch)
tree52c5c96776835c7e4f251eaa7f42fd1e8d6f63c7 /qt-ui/maintab.cpp
parent6998dcdf6ab19b6045dffbddfc6998b6458f3d96 (diff)
downloadsubsurface-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.cpp4
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();