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>
This commit is contained in:
Berthold Stoeger 2019-11-26 00:08:35 +01:00 committed by bstoeger
parent 755f185cfc
commit a431840075
3 changed files with 22 additions and 6 deletions

View file

@ -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();