From 931a1f45787719983cfac07c59a424655d0bedde Mon Sep 17 00:00:00 2001 From: Arno Date: Wed, 27 Dec 2017 05:56:21 +0100 Subject: Change deprecated QModelIndex::child Deprecation warning suggests to use QAbstractItemModel::index, so do it. --- fileview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fileview.cpp') diff --git a/fileview.cpp b/fileview.cpp index 067cc6b..0d7d90c 100644 --- a/fileview.cpp +++ b/fileview.cpp @@ -75,7 +75,7 @@ void FileView::markFiles(){ } QRegExp re(glob, Qt::CaseInsensitive, QRegExp::WildcardUnix); for(int i = 0; i < rowCount; ++i){ - QModelIndex cur = mProxy->mapFromSource((mModel->rootIndex().child(i, 0))); + QModelIndex cur = mProxy->mapFromSource(mModel->index(i, 0, mModel->rootIndex())); if(cur.data(SmDirModel::NameRole).toString() == ".."){ continue; } -- cgit v1.2.3-70-g09d2