KFile
kdirsortfilterproxymodel.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef KDIRSORTFILTERPROXYMODEL_H
00024 #define KDIRSORTFILTERPROXYMODEL_H
00025
00026 #include <QtCore/QFileInfo>
00027
00028 #include <kcategorizedsortfilterproxymodel.h>
00029
00030 #include <kfile_export.h>
00031
00051 class KFILE_EXPORT KDirSortFilterProxyModel
00052 : public KCategorizedSortFilterProxyModel
00053 {
00054 public:
00055 KDirSortFilterProxyModel(QObject* parent = 0);
00056 virtual ~KDirSortFilterProxyModel();
00057
00059 virtual bool hasChildren(const QModelIndex& parent = QModelIndex()) const;
00060
00065 virtual bool canFetchMore(const QModelIndex& parent) const;
00066
00071 static int pointsForPermissions(const QFileInfo &info);
00072
00073 protected:
00077 virtual bool subSortLessThan(const QModelIndex& left,
00078 const QModelIndex& right) const;
00079
00080 private:
00081 class KDirSortFilterProxyModelPrivate;
00082 KDirSortFilterProxyModelPrivate* const d;
00083 };
00084
00085
00086 #endif