Akonadi
recursivecollectionfilterproxymodel.cpp
47bool RecursiveCollectionFilterProxyModel::filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const
52 const auto collection = rowIndex.data(Akonadi::EntityTreeModel::CollectionRole).value<Akonadi::Collection>();
75void RecursiveCollectionFilterProxyModel::addContentMimeTypeInclusionFilter(const QString &mimeType)
115 // Optimization: we know that we're not changing the number of columns, so skip QSortFilterProxyModel
A model to filter out collections of non-matching content types.
Definition recursivecollectionfilterproxymodel.h:27
void setSearchPattern(const QString &pattern)
Add search pattern.
Definition recursivecollectionfilterproxymodel.cpp:119
void setIncludeCheckedOnly(bool checked)
Show only checked item.
Definition recursivecollectionfilterproxymodel.cpp:128
void addContentMimeTypeInclusionFilters(const QStringList &mimeTypes)
Add content mime types to be shown by the filter.
Definition recursivecollectionfilterproxymodel.cpp:83
void setContentMimeTypeInclusionFilters(const QStringList &mimeTypes)
Replace the content mime types to be shown by the filter.
Definition recursivecollectionfilterproxymodel.cpp:99
RecursiveCollectionFilterProxyModel(QObject *parent=nullptr)
Creates a new recursive collection filter proxy model.
Definition recursivecollectionfilterproxymodel.cpp:38
QStringList contentMimeTypeInclusionFilters() const
Returns the currently included mimetypes in the filter.
Definition recursivecollectionfilterproxymodel.cpp:107
~RecursiveCollectionFilterProxyModel() override
Destroys the recursive collection filter proxy model.
void addContentMimeTypeInclusionFilter(const QString &mimeType)
Add content mime type to be shown by the filter.
Definition recursivecollectionfilterproxymodel.cpp:75
void setExcludeUnifiedMailBox(bool exclude)
Don't show unified mailbox.
Definition recursivecollectionfilterproxymodel.cpp:137
Helper integration between Akonadi and Qt.
sourceModel
QVariant data(int role) const const
QSortFilterProxyModel(QObject *parent)
void invalidate()
void invalidateFilter()
virtual QStringList mimeTypes() const const override
virtual QModelIndex parent(const QModelIndex &child) const const override
void setRecursiveFilteringEnabled(bool recursive)
bool contains(QChar ch, Qt::CaseSensitivity cs) const const
CaseInsensitive
Checked
CheckStateRole
ItemIsUserCheckable
QString toString() const const
T value() const const
Q_D(Todo)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:57 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:57 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.