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:
Berthold Stoeger 2022-09-03 22:45:08 +02:00 committed by bstoeger
parent 616dbd9671
commit 72a15c46d9
10 changed files with 47 additions and 36 deletions

View file

@ -18,10 +18,10 @@ public:
void resetModel(DiveTripModelBase::Layout layout);
signals:
void selectionChanged(const QVector<QModelIndex> &indices, QModelIndex currentDive);
void selectionChanged(const QVector<QModelIndex> &indices, QModelIndex currentDive, int currentDC);
void tripSelected(QModelIndex trip, QModelIndex currentDive);
private slots:
void selectionChangedSlot(const QVector<QModelIndex> &indices, QModelIndex currentDive);
void selectionChangedSlot(const QVector<QModelIndex> &indices, QModelIndex currentDive, int currentDC);
void tripSelectedSlot(QModelIndex trip, QModelIndex currentDive);
private:
MultiFilterSortModel(QObject *parent = 0);