akonadi
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:
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);
- Since:
- 4.8
Definition at line 56 of file trashfilterproxymodel.h.
Member Function Documentation
|
protectedvirtual |
Sort filter criterias, according to how expensive the operation is.
The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Sep 24 2012 09:06:32 by doxygen 1.8.1.1 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Sep 24 2012 09:06:32 by doxygen 1.8.1.1 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.