mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
list models: include current dive in selection signal
After sending a selection-change signal, there follows a current dive changed signal. Combine these two into a single signal, since usually the current dive is changed when the selection is changed. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
832398180c
commit
9ccb940a1b
8 changed files with 23 additions and 48 deletions
|
|
@ -18,11 +18,9 @@ public:
|
|||
|
||||
void resetModel(DiveTripModelBase::Layout layout);
|
||||
signals:
|
||||
void selectionChanged(const QVector<QModelIndex> &indices);
|
||||
void currentDiveChanged(QModelIndex index);
|
||||
void selectionChanged(const QVector<QModelIndex> &indices, QModelIndex currentDive);
|
||||
private slots:
|
||||
void selectionChangedSlot(const QVector<QModelIndex> &indices);
|
||||
void currentDiveChangedSlot(QModelIndex index);
|
||||
void selectionChangedSlot(const QVector<QModelIndex> &indices, QModelIndex currentDive);
|
||||
private:
|
||||
MultiFilterSortModel(QObject *parent = 0);
|
||||
std::unique_ptr<DiveTripModelBase> model;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue