summaryrefslogtreecommitdiffstats
path: root/qt-models/divetripmodel.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-11-26 00:08:35 +0100
committerGravatar bstoeger <32835590+bstoeger@users.noreply.github.com>2019-12-04 13:00:23 +0100
commita431840075fbba6f882627496f18a0fb80630e4f (patch)
tree3c7fb27b2ef10e8ab0f08039188a08ec4213166f /qt-models/divetripmodel.h
parent755f185cfcbd3d61457df6fdff32bcf2118f0ab5 (diff)
downloadsubsurface-a431840075fbba6f882627496f18a0fb80630e4f.tar.gz
Selection: move initialization of selection from view to model
The goal here is to unify desktop and mobile by moving selection code from the desktop-only view. Currently, initialization of the selection still has to be called from the view after connecting the appropriate signals. This is due to the weird way in which create completely new models when resetting them. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/divetripmodel.h')
-rw-r--r--qt-models/divetripmodel.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-models/divetripmodel.h b/qt-models/divetripmodel.h
index 8756ba217..4f5b55f02 100644
--- a/qt-models/divetripmodel.h
+++ b/qt-models/divetripmodel.h
@@ -72,6 +72,9 @@ public:
// by instance().
static void resetModel(Layout layout);
+ // Call after having set the model to be informed of the current selection.
+ void initSelection();
+
// Clear all dives
void clear();