diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-01-28 14:24:38 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-04-02 13:53:23 -0700 |
commit | 2789bb05b133a7cf54081d58d4f5c51c8977e951 (patch) | |
tree | 48bb6337c24dcd87bd3d8fcf0ac545f544d11744 /qt-models | |
parent | 36f0ba9abed595885edf52c8db848da71fa30b11 (diff) | |
download | subsurface-2789bb05b133a7cf54081d58d4f5c51c8977e951.tar.gz |
profile: display arbitrary dive
So far the profile operated on the global displayed_dive. Instead,
take the dive to be displayed as a parameter to the plotDive()
functions.
This is necessary if we want to have multiple concurrent
profile objects. Think for example for printing or for mobile
where multiple dive objects are active at the same time.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models')
-rw-r--r-- | qt-models/divepicturemodel.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/qt-models/divepicturemodel.cpp b/qt-models/divepicturemodel.cpp index e73377d32..af2813e78 100644 --- a/qt-models/divepicturemodel.cpp +++ b/qt-models/divepicturemodel.cpp @@ -193,7 +193,6 @@ void DivePictureModel::picturesRemoved(dive *d, QVector<QString> filenamesIn) endRemoveRows(); toIdx -= j - i; } - copy_dive(current_dive, &displayed_dive); // TODO: Remove once displayed_dive is moved to the planner } // Assumes that pics is sorted! @@ -306,7 +305,6 @@ void DivePictureModel::pictureOffsetChanged(dive *d, const QString filenameIn, o // Update the offset here and in the backend oldPos->offsetSeconds = offset.seconds; - copy_dive(current_dive, &displayed_dive); // TODO: remove once profile can display arbitrary dives // Henceforth we will work with indices instead of iterators int oldIndex = oldPos - pictures.begin(); |