diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-02-08 11:39:49 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-02-08 10:29:36 -0800 |
commit | 1809dbd00a4d17bf65c60014801b893e8ebe3e3b (patch) | |
tree | 02616cc963b5243050373a792bdcdfb668d2453a /mobile-widgets/qmlinterface.cpp | |
parent | a5823a5b0dbfc9788346c88616993953c105f3d3 (diff) | |
download | subsurface-1809dbd00a4d17bf65c60014801b893e8ebe3e3b.tar.gz |
mobile/summary: remove dive summary calculation
Since we now use a model to calculate the dive summary, there
is no need to export recalculation of the dive summary via
QMLInterface.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'mobile-widgets/qmlinterface.cpp')
-rw-r--r-- | mobile-widgets/qmlinterface.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/mobile-widgets/qmlinterface.cpp b/mobile-widgets/qmlinterface.cpp index 4bf23dedf..e70c73cb9 100644 --- a/mobile-widgets/qmlinterface.cpp +++ b/mobile-widgets/qmlinterface.cpp @@ -89,14 +89,4 @@ void QMLInterface::setup(QQmlContext *ct) // Make enums available as types qmlRegisterUncreatableType<QMLInterface>("org.subsurfacedivelog.mobile",1,0,"Enums","Enum is not a type"); - - // calculate divesummary first time. - // this is needed in order to load the divesummary page - diveSummary::summaryCalculation(0, 3); -} - -void QMLInterface::summaryCalculation(int primaryPeriod, int secondaryPeriod) -{ - diveSummary::summaryCalculation(primaryPeriod, secondaryPeriod); - emit diveSummaryTextChanged(diveSummary::diveSummaryText); } |