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

akonadi

  • Akonadi
  • TrashFilterProxyModel
Public Member Functions | Protected Member Functions | List of all members
Akonadi::TrashFilterProxyModel Class Reference

#include <trashfilterproxymodel.h>

Inherits KRecursiveFilterProxyModel.

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 chrig.nosp@m.i_1@.nosp@m.fastm.nosp@m.ail..nosp@m.fm
Since
4.8

Definition at line 56 of file trashfilterproxymodel.h.

Member Function Documentation

bool TrashFilterProxyModel::acceptRow ( int  sourceRow,
const QModelIndex &  sourceParent 
) const
protectedvirtual

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

Definition at line 73 of file trashfilterproxymodel.cpp.


The documentation for this class was generated from the following files:
  • trashfilterproxymodel.h
  • trashfilterproxymodel.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:29 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akonadi

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

kdepimlibs API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kldap
  • kmbox
  • kmime
  • kpimidentities
  • kpimtextedit
  • kresources
  • ktnef
  • kxmlrpcclient
  • microblog

Search



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