mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
selection: send selection signal from selectionChanged()
In DiveListView user actions (select-all, key-press, mouse-release) were intercepted to send the selection-changed signal if the selection changed. However, with the recent cleanups, this can be done directly from selectionChanged(), since in all cases (at least the ones I tested), the part of the function that is responsible for manual selection changes is called only once. This avoids quite some complex code flow. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
018be753c3
commit
616dbd9671
2 changed files with 2 additions and 74 deletions
|
@ -56,10 +56,6 @@ slots:
|
|||
private:
|
||||
void rowsInserted(const QModelIndex &parent, int start, int end) override;
|
||||
void reset() override;
|
||||
void setSelection(const QRect &rect, QItemSelectionModel::SelectionFlags flags) override;
|
||||
void mouseReleaseEvent(QMouseEvent *event) override;
|
||||
void keyPressEvent(QKeyEvent *event) override;
|
||||
void selectAll() override;
|
||||
void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected) override;
|
||||
void selectionChangeDone();
|
||||
void selectTripItems(QModelIndex index);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue