• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KFile

kdirsortfilterproxymodel.h

Go to the documentation of this file.
00001 /*
00002    Copyright (C) 2006 by Peter Penz <peter.penz@gmx.at>
00003    Copyright (C) 2006 by Dominic Battre <dominic@battre.de>
00004    Copyright (C) 2006 by Martin Pool <mbp@canonical.com>
00005 
00006    Separated from Dolphin by Nick Shaforostoff <shafff@ukr.net>
00007 
00008    This library is free software; you can redistribute it and/or
00009    modify it under the terms of the GNU Library General Public
00010    License version 2 as published by the Free Software Foundation.
00011 
00012    This library is distributed in the hope that it will be useful,
00013    but WITHOUT ANY WARRANTY; without even the implied warranty of
00014    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015    Library General Public License for more details.
00016 
00017    You should have received a copy of the GNU Library General Public License
00018    along with this library; see the file COPYING.LIB.  If not, write to
00019    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00020    Boston, MA 02110-1301, USA.
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 
00050 class KFILE_EXPORT KDirSortFilterProxyModel
00051     : public KCategorizedSortFilterProxyModel
00052 {
00053 public:
00054     KDirSortFilterProxyModel(QObject* parent = 0);
00055     virtual ~KDirSortFilterProxyModel();
00056 
00058     virtual bool hasChildren(const QModelIndex& parent = QModelIndex()) const;
00059 
00064     virtual bool canFetchMore(const QModelIndex& parent) const;
00065 
00070     static int pointsForPermissions(const QFileInfo &info);
00071 
00076     void setSortFoldersFirst(bool foldersFirst);
00077 
00082     bool sortFoldersFirst() const;
00083 
00084 protected:
00088     virtual bool subSortLessThan(const QModelIndex& left,
00089                                  const QModelIndex& right) const;
00090 
00091 private:
00092     class KDirSortFilterProxyModelPrivate;
00093     KDirSortFilterProxyModelPrivate* const d;
00094 };
00095 
00096 
00097 #endif

KFile

Skip menu "KFile"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal