planner: update variations in planner not mainwindow

When calculating variations, they were sent to the mainwindow,
which updated displayed_dive accordingly. Do this directly
in the planner-model.

The idea is to detangle interdependencies and to make the
code reusable (planner on mobile?).

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2020-04-13 14:46:15 +02:00 committed by Robert C. Helling
parent 769915f3fe
commit f123972dbf
4 changed files with 13 additions and 10 deletions

View file

@ -170,7 +170,6 @@ slots:
// should only be enabled when the profile's visible.
void disableShortcuts(bool disablePaste = true);
void enableShortcuts();
void updateVariations(QString);
void startDiveSiteEdit();
private: