2
// Copyright 2008 Jim Bublitz <jbublitz@nwinternet.com>
3
// Earlier copyrights 1998 - 2007 Jim Bublitz also apply
7
// This file is part of PyKDE4.
9
// PyKDE4 is free software; you can redistribute it and/or modify
10
// it under the terms of the GNU Lesser General Public License as
11
// published by the Free Software Foundation; either version 2.1 of
12
// the License, or (at your option) any later version.
14
// PyKDE4 is distributed in the hope that it will be useful,
15
// but WITHOUT ANY WARRANTY; without even the implied warranty of
16
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
// GNU General Public License for more details.
19
// You should have received a copy of the GNU General Public License
20
// along with this program. If not, see <http://www.gnu.org/licenses/>.
23
class KDirSortFilterProxyModel : KCategorizedSortFilterProxyModel
26
#include <kdirsortfilterproxymodel.h>
31
KDirSortFilterProxyModel (QObject* parent /TransferThis/ = 0);
32
virtual bool hasChildren (const QModelIndex& parent = QModelIndex()) const;
33
virtual bool canFetchMore (const QModelIndex& parent) const;
34
static int pointsForPermissions (const QFileInfo& info);
35
void setSortFoldersFirst (bool foldersFirst);
36
bool sortFoldersFirst () const;
39
virtual bool subSortLessThan (const QModelIndex& left, const QModelIndex& right) const;
41
~KDirSortFilterProxyModel ();
43
// KDirSortFilterProxyModel