mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
selection: move dive selection, current dive and dc through signals
To reduce access of global variables. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
616dbd9671
commit
72a15c46d9
10 changed files with 47 additions and 36 deletions
|
@ -33,7 +33,7 @@ void MultiFilterSortModel::resetModel(DiveTripModelBase::Layout layout)
|
|||
}
|
||||
|
||||
// Translate selection into local indices and re-emit signal
|
||||
void MultiFilterSortModel::selectionChangedSlot(const QVector<QModelIndex> &indices, QModelIndex currentDive)
|
||||
void MultiFilterSortModel::selectionChangedSlot(const QVector<QModelIndex> &indices, QModelIndex currentDive, int currentDC)
|
||||
{
|
||||
QVector<QModelIndex> indicesLocal;
|
||||
indicesLocal.reserve(indices.size());
|
||||
|
@ -43,7 +43,7 @@ void MultiFilterSortModel::selectionChangedSlot(const QVector<QModelIndex> &indi
|
|||
indicesLocal.push_back(local);
|
||||
}
|
||||
|
||||
emit selectionChanged(indicesLocal, mapFromSource(currentDive));
|
||||
emit selectionChanged(indicesLocal, mapFromSource(currentDive), currentDC);
|
||||
}
|
||||
|
||||
// Translate selection into local indices and re-emit signal
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue