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:
parent
5ad4cfe8e2
commit
9d90034109
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user