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

KDEUI

kcheckableproxymodel.h

Go to the documentation of this file.
00001 /*
00002     This file is part of Akonadi.
00003 
00004     Copyright (c) 2010 Stephen Kelly <steveire@gmail.com>
00005 
00006     This program is free software; you can redistribute it and/or modify
00007     it under the terms of the GNU General Public License as published by
00008     the Free Software Foundation; either version 2 of the License, or
00009     (at your option) any later version.
00010 
00011     This program is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00014     GNU General Public License for more details.
00015 
00016     You should have received a copy of the GNU General Public License
00017     along with this program; if not, write to the Free Software
00018     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
00019     USA.
00020 */
00021 
00022 #ifndef KCHECKABLEPROXYMODEL_H
00023 #define KCHECKABLEPROXYMODEL_H
00024 
00025 #include "kidentityproxymodel.h"
00026 
00027 #include "kdeui_export.h"
00028 
00029 #include <QItemSelection>
00030 
00031 class KCheckableProxyModelPrivate;
00032 
00068 class KDEUI_EXPORT KCheckableProxyModel : public KIdentityProxyModel
00069 {
00070   Q_OBJECT
00071 public:
00072   KCheckableProxyModel(QObject* parent = 0);
00073   ~KCheckableProxyModel();
00074 
00075   void setSelectionModel(QItemSelectionModel *itemSelectionModel);
00076   QItemSelectionModel *selectionModel() const;
00077 
00078   /* reimp */ Qt::ItemFlags flags(const QModelIndex& index) const;
00079 
00080   /* reimp */ QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const;
00081 
00082   /* reimp */ bool setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole);
00083 
00084   /* reimp */ void setSourceModel(QAbstractItemModel* sourceModel);
00085 
00086 protected:
00087   virtual bool select( const QItemSelection &selection, QItemSelectionModel::SelectionFlags command );
00088 
00089 private:
00090   Q_DECLARE_PRIVATE(KCheckableProxyModel )
00091   KCheckableProxyModelPrivate * const d_ptr;
00092 
00093   Q_PRIVATE_SLOT(d_func(), void selectionChanged(const QItemSelection &, const QItemSelection &) )
00094 };
00095 
00096 #endif
00097 

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