• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • 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     Q_OBJECT
00054     
00055 public:
00056     KDirSortFilterProxyModel(QObject* parent = 0);
00057     virtual ~KDirSortFilterProxyModel();
00058 
00060     virtual bool hasChildren(const QModelIndex& parent = QModelIndex()) const;
00061 
00066     virtual bool canFetchMore(const QModelIndex& parent) const;
00067 
00072     static int pointsForPermissions(const QFileInfo &info);
00073 
00078     void setSortFoldersFirst(bool foldersFirst);
00079 
00084     bool sortFoldersFirst() const;
00085 
00086 protected:
00090     virtual bool subSortLessThan(const QModelIndex& left,
00091                                  const QModelIndex& right) const;
00092 private:
00093     Q_PRIVATE_SLOT(d, void slotNaturalSortingChanged())
00094     
00095 private:
00096     class KDirSortFilterProxyModelPrivate;
00097     KDirSortFilterProxyModelPrivate* const d;
00098 };
00099 
00100 
00101 #endif

KFile

Skip menu "KFile"
  • Main Page
  • Namespace List
  • 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
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
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