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

akonadi_next

  • sources
  • kde-4.12
  • kdepim
  • akonadi_next
kcolumnfilterproxymodel.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2010 Klarälvdalens Datakonsult AB,
3  a KDAB Group company, info@kdab.net,
4 
5  author Bertjan Broeksema <broeksema@kde.org>
6 
7  This library is free software; you can redistribute it and/or
8  modify it under the terms of the GNU Lesser General Public
9  License as published by the Free Software Foundation; either
10  version 2.1 of the License, or (at your option) any later version.
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  Lesser General Public License for more details.
16 
17  You should have received a copy of the GNU Lesser General Public
18  License along with this library; if not, write to the Free Software
19  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 */
21 
22 
23 #ifndef KCOLUMNFILTERPROXYMODEL_H
24 #define KCOLUMNFILTERPROXYMODEL_H
25 
26 #include "akonadi_next_export.h"
27 
28 #include <QSortFilterProxyModel>
29 
30 template <class T> class QVector;
31 
32 namespace Future
33 {
34 
35 class KColumnFilterProxyModelPrivate;
36 
41 class AKONADI_NEXT_EXPORT KColumnFilterProxyModel : public QSortFilterProxyModel
42 {
43 public:
44  explicit KColumnFilterProxyModel( QObject* parent = 0 );
45  virtual ~KColumnFilterProxyModel();
46 
51  QVector<int> visbileColumns() const;
52 
62  void setVisibleColumn( int column );
63 
67  void setVisibleColumns( const QVector<int> &visibleColumns );
68 
69 protected:
70  virtual bool filterAcceptsColumn( int column, const QModelIndex& parent ) const;
71 
72 private:
73  KColumnFilterProxyModelPrivate * const d_ptr;
74  Q_DECLARE_PRIVATE( KColumnFilterProxyModel )
75 };
76 
77 }
78 
79 #endif // KCOLUMNFILTERPROXYMODEL_H
QVector
Definition: kcolumnfilterproxymodel.h:30
QObject
akonadi_next_export.h
AKONADI_NEXT_EXPORT
#define AKONADI_NEXT_EXPORT
Definition: akonadi_next_export.h:35
QSortFilterProxyModel
Future::KColumnFilterProxyModel
Filter model to make only certain columns of a model visible.
Definition: kcolumnfilterproxymodel.h:41
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:54:56 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akonadi_next

Skip menu "akonadi_next"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



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