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

KDEUI

  • sources
  • kde-4.12
  • kdelibs
  • kdeui
  • itemviews
kcheckableproxymodel.h
Go to the documentation of this file.
1 /*
2  This file is part of Akonadi.
3 
4  Copyright (c) 2010 Stephen Kelly <steveire@gmail.com>
5 
6  This program is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or
9  (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with this program; if not, write to the Free Software
18  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
19  USA.
20 */
21 
22 #ifndef KCHECKABLEPROXYMODEL_H
23 #define KCHECKABLEPROXYMODEL_H
24 
25 #include "kidentityproxymodel.h"
26 
27 #include "kdeui_export.h"
28 
29 #include <QItemSelection>
30 
31 class KCheckableProxyModelPrivate;
32 
68 class KDEUI_EXPORT KCheckableProxyModel : public KIdentityProxyModel
69 {
70  Q_OBJECT
71 public:
72  KCheckableProxyModel(QObject* parent = 0);
73  ~KCheckableProxyModel();
74 
75  void setSelectionModel(QItemSelectionModel *itemSelectionModel);
76  QItemSelectionModel *selectionModel() const;
77 
78  /* reimp */ Qt::ItemFlags flags(const QModelIndex& index) const;
79 
80  /* reimp */ QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const;
81 
82  /* reimp */ bool setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole);
83 
84  /* reimp */ void setSourceModel(QAbstractItemModel* sourceModel);
85 
86 protected:
87  virtual bool select( const QItemSelection &selection, QItemSelectionModel::SelectionFlags command );
88 
89 private:
90  Q_DECLARE_PRIVATE(KCheckableProxyModel )
91  KCheckableProxyModelPrivate * const d_ptr;
92 
93  Q_PRIVATE_SLOT(d_func(), void selectionChanged(const QItemSelection &, const QItemSelection &) )
94 };
95 
96 #endif
97 
QVariant
KIdentityProxyModel
The KIdentityProxyModel class proxies its source model unmodified.
Definition: kidentityproxymodel.h:31
QItemSelectionModel
KCheckableProxyModel
Adds a checkable capability to a source model.
Definition: kcheckableproxymodel.h:68
kidentityproxymodel.h
QObject
KIdentityProxyModel::setSourceModel
void setSourceModel(QAbstractItemModel *sourceModel)
Definition: kidentityproxymodel.cpp:401
QAbstractItemModel
kdeui_export.h
KIdentityProxyModel::d_ptr
KIdentityProxyModelPrivate *const d_ptr
Definition: kidentityproxymodel.h:64
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:14 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

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