diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-10-25 14:36:05 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-10-26 19:27:03 -0700 |
commit | 5aaff77b9edf0e21e1bb08c882bdce3db9f67587 (patch) | |
tree | 9bbc747f8311684611de0a2ec725f02e036d1993 /desktop-widgets/divelistview.cpp | |
parent | 87563eb4043ed7b93d0db867a47c8af057fc2385 (diff) | |
download | subsurface-5aaff77b9edf0e21e1bb08c882bdce3db9f67587.tar.gz |
cleanup: replace deprecated use of child member
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/divelistview.cpp')
-rw-r--r-- | desktop-widgets/divelistview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/divelistview.cpp b/desktop-widgets/divelistview.cpp index 6fb1de077..92638a336 100644 --- a/desktop-widgets/divelistview.cpp +++ b/desktop-widgets/divelistview.cpp @@ -563,7 +563,7 @@ void DiveListView::selectionChanged(const QItemSelection &selected, const QItemS select_dives_in_trip(trip); if (model->rowCount(index)) { QItemSelection selection; - selection.select(index.child(0, 0), index.child(model->rowCount(index) - 1, 0)); + selection.select(model->index(0, 0, index), model->index(model->rowCount(index) - 1, 0, index)); selectionModel()->select(selection, QItemSelectionModel::Select | QItemSelectionModel::Rows); selectionModel()->setCurrentIndex(index, QItemSelectionModel::Select | QItemSelectionModel::NoUpdate); if (!isExpanded(index)) |