summaryrefslogtreecommitdiffstats
path: root/qt-models/diveplotdatamodel.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-02-05 20:45:18 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-02-05 20:45:18 -0800
commit130f4cd7ac5b27f5d8243b5c238a66c86f2604ba (patch)
treee77bc243dc0d80da8b5fabc7482212a4ada305a7 /qt-models/diveplotdatamodel.cpp
parent7f70802b9025421d25ba63a9fe9932474ac1748c (diff)
downloadsubsurface-130f4cd7ac5b27f5d8243b5c238a66c86f2604ba.tar.gz
Do not run the deco calculations in the mobile app
We don't show the calculated ceilings and calculating them is compute intensive. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-models/diveplotdatamodel.cpp')
-rw-r--r--qt-models/diveplotdatamodel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-models/diveplotdatamodel.cpp b/qt-models/diveplotdatamodel.cpp
index 4b60b3ea3..1110f19df 100644
--- a/qt-models/diveplotdatamodel.cpp
+++ b/qt-models/diveplotdatamodel.cpp
@@ -228,6 +228,7 @@ void DivePlotDataModel::emitDataChanged()
emit dataChanged(QModelIndex(), QModelIndex());
}
+#ifndef SUBSURFACE_MOBILE
void DivePlotDataModel::calculateDecompression()
{
struct divecomputer *dc = select_dc(&displayed_dive);
@@ -235,3 +236,4 @@ void DivePlotDataModel::calculateDecompression()
calculate_deco_information(&displayed_dive, dc, &pInfo, false);
dataChanged(index(0, CEILING), index(pInfo.nr - 1, TISSUE_16));
}
+#endif