From 9d90034109e96714bfa75629f8fad53e0bac79e8 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Mon, 26 Aug 2013 16:38:12 -0300 Subject: 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 --- qt-ui/diveplanner.cpp | 4 ++-- 1 file 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(); -- cgit v1.2.3-70-g09d2