diff options
author | Arno <am@disconnect.de> | 2010-05-12 19:58:20 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2010-05-12 19:58:20 +0200 |
commit | e0fcfd2bc9bee8fd5b27157acab4be8497117844 (patch) | |
tree | e38ad067636094321b99b9ce6f0647dcc0ccee3f /filesystemdirproxy.cpp | |
parent | 962fbe7377d47bf50cc580fcac21a98cd8a0fd85 (diff) | |
download | SheMov-e0fcfd2bc9bee8fd5b27157acab4be8497117844.tar.gz SheMov-e0fcfd2bc9bee8fd5b27157acab4be8497117844.tar.bz2 SheMov-e0fcfd2bc9bee8fd5b27157acab4be8497117844.zip |
Discard QDirModel
QDirModel is deprecated by the Nokia guys. Use QFileSystemModel instead.
Diffstat (limited to 'filesystemdirproxy.cpp')
-rw-r--r-- | filesystemdirproxy.cpp | 4 |
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; |