Replaced deprecated QModelIndex::child by QAbstractItemModel::index

This commit is contained in:
thunder2 2025-07-22 18:29:22 +02:00
parent c00a4dccb5
commit ec497f0015
4 changed files with 6 additions and 6 deletions

View file

@ -1018,7 +1018,7 @@ void SharedFilesDialog::recursExpandAll(const QModelIndex& index)
for(int row=0;row<ui.dirTreeView->model()->rowCount(index);++row)
{
QModelIndex idx(index.child(row,0)) ;
QModelIndex idx(ui.dirTreeView->model()->index(row,0,index)) ;
if(ui.dirTreeView->model()->rowCount(idx) > 0)
recursExpandAll(idx) ;