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)
83void RecursiveCollectionFilterProxyModel::addContentMimeTypeInclusionFilters(const QStringList &mimeTypes)
99void RecursiveCollectionFilterProxyModel::setContentMimeTypeInclusionFilters(const QStringList &mimeTypes)
115 // Optimization: we know that we're not changing the number of columns, so skip QSortFilterProxyModel
Helper for checking MIME types of Collections and Items.
Definition mimetypechecker.h:97
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
iterator begin()
iterator end()
QVariant data(int role) const const
void invalidate()
void invalidateFilter()
virtual QStringList mimeTypes() 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-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:29 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:29 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.