From 5aaff77b9edf0e21e1bb08c882bdce3db9f67587 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 25 Oct 2020 14:36:05 -0700 Subject: cleanup: replace deprecated use of child member Signed-off-by: Dirk Hohndel --- desktop-widgets/divelistview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'desktop-widgets/divelistview.cpp') 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)) -- cgit v1.2.3-70-g09d2