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:
Dirk Hohndel 2014-06-10 11:45:20 -07:00
parent 6998dcdf6a
commit e6fe4760a0
2 changed files with 25 additions and 25 deletions

View file

@ -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();