Fixed invalid values on the TableView

The values of the dive points on the tableview were
too big, I'm now dividing time by 60 and depth by 1000
to get the correct results.

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
Tomaz Canabrava 2013-08-26 16:38:12 -03:00
parent 5ad4cfe8e2
commit 9d90034109

View file

@ -882,8 +882,8 @@ QVariant DivePlannerPointsModel::data(const QModelIndex& index, int role) const
switch(index.column()){
case GAS: return tr("Air");
case CCSETPOINT: return 0;
case DEPTH: return p.depth;
case DURATION: return p.time;
case DEPTH: return p.depth / 1000;
case DURATION: return p.time / 60;
}
}
return QVariant();