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

KDEUI

kidentityproxymodel.h

Go to the documentation of this file.
00001 /*
00002     Copyright (C) 2010 Klarälvdalens Datakonsult AB,
00003         a KDAB Group company, info@kdab.net,
00004         author Stephen Kelly <stephen@kdab.com>
00005 
00006     This library is free software; you can redistribute it and/or modify it
00007     under the terms of the GNU Library General Public License as published by
00008     the Free Software Foundation; either version 2 of the License, or (at your
00009     option) any later version.
00010 
00011     This library is distributed in the hope that it will be useful, but WITHOUT
00012     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00013     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00014     License for more details.
00015 
00016     You should have received a copy of the GNU Library General Public License
00017     along with this library; see the file COPYING.LIB.  If not, write to the
00018     Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00019     02110-1301, USA.
00020 */
00021 
00022 #ifndef KIDENTITYPROXYMODEL_H
00023 #define KIDENTITYPROXYMODEL_H
00024 
00025 #include <QtGui/QAbstractProxyModel>
00026 
00027 #include "kdeui_export.h"
00028 
00029 class KIdentityProxyModelPrivate;
00030 
00031 class KDEUI_EXPORT KIdentityProxyModel : public QAbstractProxyModel
00032 {
00033   Q_OBJECT
00034 public:
00035   explicit KIdentityProxyModel(QObject* parent = 0);
00036   virtual ~KIdentityProxyModel();
00037 
00038   int columnCount(const QModelIndex& parent = QModelIndex()) const;
00039   QModelIndex index(int row, int column, const QModelIndex& parent = QModelIndex()) const;
00040   QModelIndex mapFromSource(const QModelIndex& sourceIndex) const;
00041   QModelIndex mapToSource(const QModelIndex& proxyIndex) const;
00042   QModelIndex parent(const QModelIndex& child) const;
00043   int rowCount(const QModelIndex& parent = QModelIndex()) const;
00044   bool dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent);
00045 
00046   QItemSelection mapSelectionFromSource(const QItemSelection& selection) const;
00047   QItemSelection mapSelectionToSource(const QItemSelection& selection) const;
00048   QModelIndexList match(const QModelIndex& start, int role, const QVariant& value, int hits = 1, Qt::MatchFlags flags = Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap)) const;
00049   void setSourceModel(QAbstractItemModel* sourceModel);
00050 
00051   bool insertColumns(int column, int count, const QModelIndex& parent = QModelIndex());
00052   bool insertRows(int row, int count, const QModelIndex& parent = QModelIndex());
00053   bool removeColumns(int column, int count, const QModelIndex& parent = QModelIndex());
00054   bool removeRows(int row, int count, const QModelIndex& parent = QModelIndex());
00055 
00056 protected:
00057   KIdentityProxyModel(KIdentityProxyModelPrivate *privateClass, QObject* parent);
00058   KIdentityProxyModelPrivate * const d_ptr;
00059 
00060 protected Q_SLOTS:
00061   virtual void resetInternalData();
00062 
00063 private:
00064   Q_DECLARE_PRIVATE(KIdentityProxyModel)
00065   Q_DISABLE_COPY(KIdentityProxyModel)
00066 
00067   Q_PRIVATE_SLOT(d_func(), void _k_sourceRowsAboutToBeInserted(QModelIndex,int,int))
00068   Q_PRIVATE_SLOT(d_func(), void _k_sourceRowsInserted(QModelIndex,int,int))
00069   Q_PRIVATE_SLOT(d_func(), void _k_sourceRowsAboutToBeRemoved(QModelIndex,int,int))
00070   Q_PRIVATE_SLOT(d_func(), void _k_sourceRowsRemoved(QModelIndex,int,int))
00071   Q_PRIVATE_SLOT(d_func(), void _k_sourceRowsAboutToBeMoved(QModelIndex,int,int,QModelIndex,int))
00072   Q_PRIVATE_SLOT(d_func(), void _k_sourceRowsMoved(QModelIndex,int,int,QModelIndex,int))
00073 
00074   Q_PRIVATE_SLOT(d_func(), void _k_sourceColumnsAboutToBeInserted(QModelIndex,int,int))
00075   Q_PRIVATE_SLOT(d_func(), void _k_sourceColumnsInserted(QModelIndex,int,int))
00076   Q_PRIVATE_SLOT(d_func(), void _k_sourceColumnsAboutToBeRemoved(QModelIndex,int,int))
00077   Q_PRIVATE_SLOT(d_func(), void _k_sourceColumnsRemoved(QModelIndex,int,int))
00078   Q_PRIVATE_SLOT(d_func(), void _k_sourceColumnsAboutToBeMoved(QModelIndex,int,int,QModelIndex,int))
00079   Q_PRIVATE_SLOT(d_func(), void _k_sourceColumnsMoved(QModelIndex,int,int,QModelIndex,int))
00080 
00081   Q_PRIVATE_SLOT(d_func(), void _k_sourceDataChanged(QModelIndex,QModelIndex))
00082   Q_PRIVATE_SLOT(d_func(), void _k_sourceHeaderDataChanged(Qt::Orientation orientation, int first, int last))
00083 
00084   Q_PRIVATE_SLOT(d_func(), void _k_sourceLayoutAboutToBeChanged())
00085   Q_PRIVATE_SLOT(d_func(), void _k_sourceLayoutChanged())
00086   Q_PRIVATE_SLOT(d_func(), void _k_sourceChildrenLayoutsAboutToBeChanged(const QModelIndex &parent1, const QModelIndex &parent2))
00087   Q_PRIVATE_SLOT(d_func(), void _k_sourceChildrenLayoutsChanged(const QModelIndex &parent1, const QModelIndex &parent2))
00088   Q_PRIVATE_SLOT(d_func(), void _k_sourceModelAboutToBeReset())
00089   Q_PRIVATE_SLOT(d_func(), void _k_sourceModelReset())
00090   Q_PRIVATE_SLOT(d_func(), void _k_sourceModelDestroyed())
00091 };
00092 
00093 #endif // KIDENTITYPROXYMODEL_H

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