mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
755f185cfc
commit
a431840075
3 changed files with 22 additions and 6 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue