summaryrefslogtreecommitdiffstats
path: root/filesystemdirproxy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'filesystemdirproxy.cpp')
-rw-r--r--filesystemdirproxy.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/filesystemdirproxy.cpp b/filesystemdirproxy.cpp
index 6e9a714..ae5d188 100644
--- a/filesystemdirproxy.cpp
+++ b/filesystemdirproxy.cpp
@@ -5,7 +5,7 @@
2 of the License, or (at your option) any later version.
*/
-#include <QDirModel>
+#include <QFileSystemModel>
#include <QModelIndex>
#include "filesystemdirproxy.h"
@@ -13,7 +13,7 @@
FilesystemDirProxy::FilesystemDirProxy(QObject *parent) : QSortFilterProxyModel(parent) {};
bool FilesystemDirProxy::filterAcceptsRow(int sourcerow, const QModelIndex &sourceparent) const {
- QDirModel *m = static_cast<QDirModel*>(sourceModel());
+ QFileSystemModel *m = static_cast<QFileSystemModel*>(sourceModel());
QModelIndex idx = m->index(sourcerow, 0, sourceparent);
if(!idx.isValid()){
return false;