• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdeutils
  • Sitemap
  • Contact Us
 

kgpg

groupeditproxymodel.h

Go to the documentation of this file.
00001 /* Copyright 2008  Rolf Eike Beer <kde@opensource.sf-tec.de>
00002  *
00003  * This program is free software; you can redistribute it and/or
00004  * modify it under the terms of the GNU General Public License as
00005  * published by the Free Software Foundation; either version 2 of
00006  * the License or (at your option) version 3 or any later version
00007  * accepted by the membership of KDE e.V. (or its successor approved
00008  * by the membership of KDE e.V.), which shall act as a proxy
00009  * defined in Section 14 of version 3 of the license.
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, see <http://www.gnu.org/licenses/>.
00018  */
00019 #ifndef GROUPEDITPROXYMODEL_H
00020 #define GROUPEDITPROXYMODEL_H
00021 
00022 #include <QSortFilterProxyModel>
00023 
00024 class KGpgNode;
00025 class KGpgItemModel;
00026 
00027 class GroupEditProxyModel: public QSortFilterProxyModel
00028 {
00029 public:
00030     explicit GroupEditProxyModel(QObject * parent, const bool &invert, QList<KGpgNode *> *ids);
00031 
00032     void setKeyModel(KGpgItemModel *);
00033 
00034     KGpgNode *nodeForIndex(const QModelIndex &index) const;
00035 
00036     virtual int rowCount(const QModelIndex &parent = QModelIndex()) const;
00037 
00038     virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
00039     virtual bool hasChildren(const QModelIndex &parent) const;
00040     virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
00041 
00042 protected:
00043     virtual bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const;
00044     virtual int columnCount(const QModelIndex &) const;
00045 
00046 private:
00047     KGpgItemModel *m_model;
00048     bool m_invert;
00049     QList<KGpgNode *> *m_ids;
00050 };
00051 
00052 #endif

kgpg

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

kdeutils

Skip menu "kdeutils"
  • ark
  • kcalc
  • kcharselect
  • kdessh
  • kdf
  • kfloppy
  • kgpg
  • ktimer
  • kwallet
  • okteta
  • printer-applet
  • superkaramba
  • sweeper
Generated for kdeutils by doxygen 1.5.4
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