• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KFile

  • kfile
kdirsortfilterproxymodel.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2006 by Peter Penz <peter.penz@gmx.at>
3 Copyright (C) 2006 by Dominic Battre <dominic@battre.de>
4 Copyright (C) 2006 by Martin Pool <mbp@canonical.com>
5
6 Separated from Dolphin by Nick Shaforostoff <shafff@ukr.net>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Library General Public
10 License version 2 as published by the Free Software Foundation.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Library General Public License for more details.
16
17 You should have received a copy of the GNU Library General Public License
18 along with this library; see the file COPYING.LIB. If not, write to
19 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 Boston, MA 02110-1301, USA.
21*/
22
23#ifndef KDIRSORTFILTERPROXYMODEL_H
24#define KDIRSORTFILTERPROXYMODEL_H
25
26#include <QtCore/QFileInfo>
27
28#include <kcategorizedsortfilterproxymodel.h>
29
30#include <kfile_export.h>
31
50class KFILE_EXPORT KDirSortFilterProxyModel
51 : public KCategorizedSortFilterProxyModel
52{
53 Q_OBJECT
54
55public:
56 KDirSortFilterProxyModel(QObject* parent = 0);
57 virtual ~KDirSortFilterProxyModel();
58
60 virtual bool hasChildren(const QModelIndex& parent = QModelIndex()) const;
61
66 virtual bool canFetchMore(const QModelIndex& parent) const;
67
72 static int pointsForPermissions(const QFileInfo &info);
73
78 void setSortFoldersFirst(bool foldersFirst);
79
84 bool sortFoldersFirst() const;
85
86protected:
90 virtual bool subSortLessThan(const QModelIndex& left,
91 const QModelIndex& right) const;
92private:
93 Q_PRIVATE_SLOT(d, void slotNaturalSortingChanged())
94
95private:
96 class KDirSortFilterProxyModelPrivate;
97 KDirSortFilterProxyModelPrivate* const d;
98};
99
100
101#endif
KCategorizedSortFilterProxyModel
KDirSortFilterProxyModel
Acts as proxy model for KDirModel to sort and filter KFileItems.
Definition: kdirsortfilterproxymodel.h:52
QObject
kcategorizedsortfilterproxymodel.h
kfile_export.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KFile

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

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • 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
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal