aboutsummaryrefslogtreecommitdiffstats
path: root/qt-models/diveplotdatamodel.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-12-29 23:04:12 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-01-10 15:57:39 -0800
commit0104b0a91588cff613b74d36bff66ac54f5cd1a3 (patch)
treea1b3f731b896ebd907dd8612d1725a22aa08441d /qt-models/diveplotdatamodel.h
parentdd0939b6f5c9c7399183f2a36b2be77521886ef0 (diff)
downloadsubsurface-0104b0a91588cff613b74d36bff66ac54f5cd1a3.tar.gz
profile: explicitly update profile items
Instead of listening to the dive-data-model changed and axis changed signals, update the profile items explicitly once per plot() call. This avoids double replotting of the dive items. The old code had at least two replots per plot() call: one after profileYAxis()->setMaximum() and one after dataModel->emitDataChanged(). Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/diveplotdatamodel.h')
-rw-r--r--qt-models/diveplotdatamodel.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/qt-models/diveplotdatamodel.h b/qt-models/diveplotdatamodel.h
index 36b41ac56..110cff5fc 100644
--- a/qt-models/diveplotdatamodel.h
+++ b/qt-models/diveplotdatamodel.h
@@ -85,7 +85,6 @@ public:
double pheMax() const;
double pn2Max() const;
double po2Max() const;
- void emitDataChanged();
private:
struct plot_info pInfo;