From e0fcfd2bc9bee8fd5b27157acab4be8497117844 Mon Sep 17 00:00:00 2001 From: Arno Date: Wed, 12 May 2010 19:58:20 +0200 Subject: Discard QDirModel QDirModel is deprecated by the Nokia guys. Use QFileSystemModel instead. --- filesystemdirproxy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'filesystemdirproxy.cpp') 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 +#include #include #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(sourceModel()); + QFileSystemModel *m = static_cast(sourceModel()); QModelIndex idx = m->index(sourcerow, 0, sourceparent); if(!idx.isValid()){ return false; -- cgit v1.2.3-70-g09d2