• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.14.10 API Reference
  • KDE Home
  • Contact Us
 

akonadi

  • akonadi
  • calendar
kcolumnfilterproxymodel_p.h
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#ifndef AKONADI_KCOLUMNFILTERPROXYMODEL_P_H
23#define AKONADI_KCOLUMNFILTERPROXYMODEL_P_H
24
25#include <QSortFilterProxyModel>
26
27template <class T> class QVector;
28
29namespace Akonadi
30{
31
32class KColumnFilterProxyModelPrivate;
33
38class KColumnFilterProxyModel : public QSortFilterProxyModel
39{
40public:
41 explicit KColumnFilterProxyModel(QObject* parent = 0);
42 virtual ~KColumnFilterProxyModel();
43
48 QVector<int> visbileColumns() const;
49
58 void setVisibleColumn(int column);
59
64 void setVisibleColumns(const QVector<int> &visibleColumns);
65
66protected:
67 virtual bool filterAcceptsColumn(int column, const QModelIndex& parent) const;
68
69private:
70 KColumnFilterProxyModelPrivate * const d_ptr;
71 Q_DECLARE_PRIVATE(KColumnFilterProxyModel)
72};
73
74}
75
76#endif // KCOLUMNFILTERPROXYMODEL_H
Akonadi::KColumnFilterProxyModel
Filter model to make only certain columns of a model visible.
Definition kcolumnfilterproxymodel_p.h:39
Akonadi::KColumnFilterProxyModel::visbileColumns
QVector< int > visbileColumns() const
Returns a vector containing the visible columns.
Definition kcolumnfilterproxymodel.cpp:46
Akonadi::KColumnFilterProxyModel::setVisibleColumn
void setVisibleColumn(int column)
Convenience function.
Definition kcolumnfilterproxymodel.cpp:52
Akonadi::KColumnFilterProxyModel::setVisibleColumns
void setVisibleColumns(const QVector< int > &visibleColumns)
Change the visible columns.
Definition kcolumnfilterproxymodel.cpp:57
Akonadi
FreeBusyManager::Singleton.
Definition actionstatemanager_p.h:28
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akonadi

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

kdepimlibs-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
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