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

KDEUI

  • 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
31class KCheckableProxyModelPrivate;
32
68class KDEUI_EXPORT KCheckableProxyModel : public KIdentityProxyModel
69{
70 Q_OBJECT
71public:
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
86protected:
87 virtual bool select( const QItemSelection &selection, QItemSelectionModel::SelectionFlags command );
88
89private:
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
KCheckableProxyModel
Adds a checkable capability to a source model.
Definition: kcheckableproxymodel.h:69
KIdentityProxyModel
The KIdentityProxyModel class proxies its source model unmodified.
Definition: kidentityproxymodel.h:32
QAbstractItemModel
QItemSelectionModel
QObject
kdeui_export.h
kidentityproxymodel.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 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-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 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
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
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