diff options
author | Robert C. Helling <helling@atdotde.de> | 2017-11-27 17:36:21 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-12-01 15:47:51 -0800 |
commit | a9703628c4c4d3b1226d4ea86b3079718940e14e (patch) | |
tree | c008eb9c45ef2b02425c086b39877d35cc34ec5f /qt-models/diveplannermodel.h | |
parent | f159792b8050bb6d07dbf29c525dc5e86da2688b (diff) | |
download | subsurface-a9703628c4c4d3b1226d4ea86b3079718940e14e.tar.gz |
Actually compute variations in background
This reenables the computation of plan variations but now in a separate
thread. Once finieshed, a signal is sent to update the notes.
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'qt-models/diveplannermodel.h')
-rw-r--r-- | qt-models/diveplannermodel.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/qt-models/diveplannermodel.h b/qt-models/diveplannermodel.h index 5e04c9d79..3070b36cd 100644 --- a/qt-models/diveplannermodel.h +++ b/qt-models/diveplannermodel.h @@ -110,13 +110,14 @@ signals: void startTimeChanged(QDateTime); void recreationChanged(bool); void calculatedPlanNotes(); + void variationsComputed(QString); private: explicit DivePlannerPointsModel(QObject *parent = 0); void createPlan(bool replanCopy); struct diveplan diveplan; - struct divedatapoint *cloneDiveplan(struct diveplan *plan_copy); - void computeVariations(struct deco_state *ds); + struct divedatapoint *cloneDiveplan(struct diveplan *plan_src, struct diveplan *plan_copy); + void computeVariations(struct diveplan *diveplan, struct deco_state *ds); int analyzeVariations(struct decostop *min, struct decostop *mid, struct decostop *max, const char *unit); Mode mode; bool recalc; |