summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-08-26 16:38:12 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-08-26 16:38:12 -0300
commit9d90034109e96714bfa75629f8fad53e0bac79e8 (patch)
tree3b11b0d016410c5fc08a22eb149ad86382cc819c /qt-ui
parent5ad4cfe8e22d41720ad6ea0d8dea77fdea5d3f2f (diff)
downloadsubsurface-9d90034109e96714bfa75629f8fad53e0bac79e8.tar.gz
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>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/diveplanner.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp
index dc0b34617..adb1bb62a 100644
--- a/qt-ui/diveplanner.cpp
+++ b/qt-ui/diveplanner.cpp
@@ -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();