diff options
Diffstat (limited to 'storemodel.cpp')
-rw-r--r-- | storemodel.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/storemodel.cpp b/storemodel.cpp index 7148f83f..f7c7b8c2 100644 --- a/storemodel.cpp +++ b/storemodel.cpp @@ -47,8 +47,8 @@ bool StoreModel::ShowThis(const QModelIndex index) const else { QModelIndex useIndex = sourceModel()->index(index.row(), 0, index.parent()); - QString type = sourceModel()->data(useIndex, Qt::DisplayRole).toString(); - if ( ! type.contains(filterRegExp())) + QString path = fs->filePath(useIndex); + if ( ! path.contains(filterRegExp())) { retVal = false; } @@ -59,3 +59,7 @@ bool StoreModel::ShowThis(const QModelIndex index) const } return retVal; } + +void StoreModel::setFSModel(QFileSystemModel *sourceModel) { + fs = sourceModel; +} |