~ubuntu-branches/ubuntu/maverick/kdebase/maverick-updates

« back to all changes in this revision

Viewing changes to apps/konqueror/src/ksortfilterproxymodel.h

  • Committer: Bazaar Package Importer
  • Author(s): Debian Qt/KDE Maintainers, Martin Alfke, Modestas Vainius
  • Date: 2010-05-01 23:37:50 UTC
  • mfrom: (0.7.4 upstream) (0.4.4 experimental)
  • mto: This revision was merged to the branch mainline in revision 285.
  • Revision ID: james.westby@ubuntu.com-20100501233750-maq4i4sh8ymjbneb
Tags: 4:4.4.3-1
* New upstream release:
  - Konsole does not crash when closing a broken restored session.
    (Closes: #555831)
  - Konqueror does not crash when closing fast a tab. (Closes: #441298)

[Martin Alfke]
* Update of debian/copyright for kde 4.4

[ Modestas Vainius ]
* Bump kde-sc-dev-latest build dependency to 4.4.3.
* Confirm symbol files for 4.4.2 on hurd-i386 i386 ia64 kfreebsd-amd64
  kfreebsd-i386 mips powerpc s390 sparc.
* Release KDE SC 4.4.3 to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2009 John Tapsell <tapsell@kde.org>
 
3
 *
 
4
 * This library is free software; you can redistribute it and/or
 
5
 * modify it under the terms of the GNU Library General Public
 
6
 * License as published by the Free Software Foundation; either
 
7
 * version 2 of the License, or (at your option) any later version.
 
8
 *
 
9
 * This library is distributed in the hope that it will be useful,
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
12
 * Library General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU Library General Public License
 
15
 * along with this library; see the file COPYING.LIB.  If not, write to
 
16
 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 
17
 * Boston, MA 02110-1301, USA.
 
18
 */
 
19
 
 
20
#ifndef KSORTFILTERPROXYMODEL_H
 
21
#define KSORTFILTERPROXYMODEL_H
 
22
 
 
23
#include <QtGui/QSortFilterProxyModel>
 
24
 
 
25
/**
 
26
 * @class KSortFilterProxyModel
 
27
 *
 
28
 * This class extends QSortFilterProxyModel to allow filtering for a matching child
 
29
 * in a tree.
 
30
 * It can also show all the children of a matching parent, if setShowAllChildren is set.
 
31
 *
 
32
 * @author John Tapsell <tapsell@kde.org>
 
33
 * @since 4.4
 
34
 */
 
35
class KSortFilterProxyModelPrivate;
 
36
 
 
37
class KSortFilterProxyModel 
 
38
    : public QSortFilterProxyModel
 
39
{
 
40
  Q_OBJECT
 
41
    public:
 
42
      /*! Constructs a sorting filter model with the given parent. */
 
43
      KSortFilterProxyModel(QObject * parent = 0);
 
44
      /*! Destroys this sorting filter model. */
 
45
      ~KSortFilterProxyModel();
 
46
 
 
47
      /*! Whether to show the children of a matching parent.
 
48
       *  This is false by default. */
 
49
      bool showAllChildren() const;
 
50
      /*! Set whether to show the children of a matching parent.
 
51
       *  This is false by default. */
 
52
      void setShowAllChildren(bool showAllChildren);
 
53
 
 
54
    protected:
 
55
      /*! \reimp */
 
56
      virtual bool filterAcceptsRow ( int source_row, const QModelIndex & source_parent ) const;
 
57
      KSortFilterProxyModelPrivate * const d_ptr;
 
58
 
 
59
      Q_DISABLE_COPY( KSortFilterProxyModel )
 
60
};
 
61
#endif