akonadi
#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:
- Since
- 4.8
Definition at line 56 of file trashfilterproxymodel.h.
Constructor & Destructor Documentation
◆ TrashFilterProxyModel()
|
explicit |
Definition at line 51 of file trashfilterproxymodel.cpp.
◆ ~TrashFilterProxyModel()
|
virtual |
Definition at line 58 of file trashfilterproxymodel.cpp.
Member Function Documentation
◆ acceptRow()
|
protectedvirtual |
Sort filter criterias, according to how expensive the operation is.
Definition at line 76 of file trashfilterproxymodel.cpp.
◆ showTrash()
void TrashFilterProxyModel::showTrash | ( | bool | enable | ) |
Definition at line 63 of file trashfilterproxymodel.cpp.
◆ trashIsShown()
bool TrashFilterProxyModel::trashIsShown | ( | ) | const |
Definition at line 70 of file trashfilterproxymodel.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.