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

KDEUI

krecursivefilterproxymodel.h

Go to the documentation of this file.
00001 /*
00002     Copyright (c) 2009 Stephen Kelly <steveire@gmail.com>
00003 
00004     This library is free software; you can redistribute it and/or modify it
00005     under the terms of the GNU Library General Public License as published by
00006     the Free Software Foundation; either version 2 of the License, or (at your
00007     option) any later version.
00008 
00009     This library is distributed in the hope that it will be useful, but WITHOUT
00010     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00011     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00012     License for more details.
00013 
00014     You should have received a copy of the GNU Library General Public License
00015     along with this library; see the file COPYING.LIB.  If not, write to the
00016     Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00017     02110-1301, USA.
00018 */
00019 
00020 
00021 #ifndef KRECURSIVEFILTERPROXYMODEL_H
00022 #define KRECURSIVEFILTERPROXYMODEL_H
00023 
00024 #include <QtGui/QSortFilterProxyModel>
00025 
00026 #include "kdeui_export.h"
00027 
00028 class KRecursiveFilterProxyModelPrivate;
00029 
00087 class KDEUI_EXPORT KRecursiveFilterProxyModel : public QSortFilterProxyModel
00088 {
00089   Q_OBJECT
00090 public:
00094   explicit KRecursiveFilterProxyModel(QObject* parent = 0);
00095 
00099   virtual ~KRecursiveFilterProxyModel();
00100 
00102   void setSourceModel( QAbstractItemModel *model );
00103 
00104 protected:
00108   virtual bool acceptRow(int sourceRow, const QModelIndex &sourceParent) const;
00109 
00110 private:
00112   bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const;
00113 
00114 protected:
00115   KRecursiveFilterProxyModelPrivate * const d_ptr;
00116 
00117 private:
00118   //@cond PRIVATE
00119   Q_DECLARE_PRIVATE(KRecursiveFilterProxyModel)
00120 
00121   Q_PRIVATE_SLOT(d_func(), void sourceDataChanged(const QModelIndex &source_top_left, const QModelIndex &source_bottom_right))
00122   Q_PRIVATE_SLOT(d_func(), void sourceRowsAboutToBeInserted(const QModelIndex &source_parent, int start, int end))
00123   Q_PRIVATE_SLOT(d_func(), void sourceRowsInserted(const QModelIndex &source_parent, int start, int end))
00124   Q_PRIVATE_SLOT(d_func(), void sourceRowsAboutToBeRemoved(const QModelIndex &source_parent, int start, int end))
00125   Q_PRIVATE_SLOT(d_func(), void sourceRowsRemoved(const QModelIndex &source_parent, int start, int end))
00126   //@endcond
00127 };
00128 
00129 #endif
00130 

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • 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