diff options
author | Arno <arno@disconnect.de> | 2017-12-27 05:56:21 +0100 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2017-12-27 05:56:21 +0100 |
commit | 931a1f45787719983cfac07c59a424655d0bedde (patch) | |
tree | af1c940a67250605167d23b0b1f95e52c8dff90f /fileview.cpp | |
parent | a5e17c5e952cb3117fa964e59560527a1252b8c1 (diff) | |
download | SheMov-931a1f45787719983cfac07c59a424655d0bedde.tar.gz SheMov-931a1f45787719983cfac07c59a424655d0bedde.tar.bz2 SheMov-931a1f45787719983cfac07c59a424655d0bedde.zip |
Change deprecated QModelIndex::child
Deprecation warning suggests to use QAbstractItemModel::index, so do it.
Diffstat (limited to 'fileview.cpp')
-rw-r--r-- | fileview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |