mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
a5823a5b0d
commit
1809dbd00a
3 changed files with 2 additions and 23 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue