• Skip to content
  • Skip to link menu
KDE 4.8 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • KDE Home
  • Contact Us
 

akonadi

  • Akonadi
  • TrashFilterProxyModel
Public Member Functions | Protected Member Functions
Akonadi::TrashFilterProxyModel Class Reference

#include <trashfilterproxymodel.h>

Inherits KRecursiveFilterProxyModel.

List of all members.

Public Member Functions

 TrashFilterProxyModel (QObject *parent=0)
void showTrash (bool enable)
bool trashIsShown () const

Protected Member Functions

virtual bool acceptRow (int sourceRow, const QModelIndex &sourceParent) const

Detailed Description

Filter model which hides/shows entites marked as trash.

Filter model which either hides all entities marked as trash, or the ones not marked. Subentities of collections marked as trash are also shown in the trash.

The Base model must be an EntityTreeModel and the EntityDeletedAttribute must be available.

Example:

 ChangeRecorder *monitor = new Akonadi::ChangeRecorder( this );
 monitor->itemFetchScope().fetchAttribute<Akonadi::EntityDisplayAttribute>(true);

 Akonadi::EntityTreeModel *sourcemodel = new Akonadi::EntityTreeModel(monitor, this);

 TrashFilterProxyModel *model = new TrashFilterProxyModel(this);
 model->setDynamicSortFilter(true);
 model->setSourceModel(sourcemodel);
Author:
Christian Mollekopf <chrigi_1@fastmail.fm>
Since:
4.8

Definition at line 56 of file trashfilterproxymodel.h.


Member Function Documentation

virtual bool Akonadi::TrashFilterProxyModel::acceptRow ( int  sourceRow,
const QModelIndex &  sourceParent 
) const [protected, virtual]

Sort filter criterias, according to how expensive the operation is.


The documentation for this class was generated from the following file:
  • trashfilterproxymodel.h

akonadi

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

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.7.6.1
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