mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cleanup: replace deprecated use of child member
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
87563eb404
commit
5aaff77b9e
1 changed files with 1 additions and 1 deletions
|
@ -563,7 +563,7 @@ void DiveListView::selectionChanged(const QItemSelection &selected, const QItemS
|
||||||
select_dives_in_trip(trip);
|
select_dives_in_trip(trip);
|
||||||
if (model->rowCount(index)) {
|
if (model->rowCount(index)) {
|
||||||
QItemSelection selection;
|
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()->select(selection, QItemSelectionModel::Select | QItemSelectionModel::Rows);
|
||||||
selectionModel()->setCurrentIndex(index, QItemSelectionModel::Select | QItemSelectionModel::NoUpdate);
|
selectionModel()->setCurrentIndex(index, QItemSelectionModel::Select | QItemSelectionModel::NoUpdate);
|
||||||
if (!isExpanded(index))
|
if (!isExpanded(index))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue