akonadi
recursivecollectionfilterproxymodel.cpp
65 bool RecursiveCollectionFilterProxyModel::acceptRow(int sourceRow, const QModelIndex &sourceParent) const
70 const Akonadi::Collection collection = rowIndex.data(Akonadi::EntityTreeModel::CollectionRole).value<Akonadi::Collection>();
90 void RecursiveCollectionFilterProxyModel::addContentMimeTypeInclusionFilter(const QString &mimeType)
98 void RecursiveCollectionFilterProxyModel::addContentMimeTypeInclusionFilters(const QStringList &mimeTypes)
114 void RecursiveCollectionFilterProxyModel::setContentMimeTypeInclusionFilters(const QStringList &mimeTypes)
130 // Optimization: we know that we're not changing the number of columns, so skip QSortFilterProxyModel
void clearFilters()
Clears the current filters.
Definition: recursivecollectionfilterproxymodel.cpp:106
void setSearchPattern(const QString &pattern)
Add search pattern.
Definition: recursivecollectionfilterproxymodel.cpp:134
T value() const
QSet< T > toSet() const
Helper for checking MIME types of Collections and Items.
Definition: mimetypechecker.h:109
RecursiveCollectionFilterProxyModel(QObject *parent=0)
Creates a new recursive collection filter proxy model.
Definition: recursivecollectionfilterproxymodel.cpp:53
void addContentMimeTypeInclusionFilters(const QStringList &mimeTypes)
Add content mime types to be shown by the filter.
Definition: recursivecollectionfilterproxymodel.cpp:98
int toInt(bool *ok) const
A model to filter out collections of non-matching content types.
Definition: recursivecollectionfilterproxymodel.h:39
void setIncludeCheckedOnly(bool checked)
Show only checked item.
Definition: recursivecollectionfilterproxymodel.cpp:141
bool contains(QChar ch, Qt::CaseSensitivity cs) const
void setContentMimeTypeInclusionFilters(const QStringList &mimeTypes)
Replace the content mime types to be shown by the filter.
Definition: recursivecollectionfilterproxymodel.cpp:114
QVariant data(int role) const
void addContentMimeTypeInclusionFilter(const QString &mimeType)
Add content mime type to be shown by the filter.
Definition: recursivecollectionfilterproxymodel.cpp:90
QStringList contentMimeTypeInclusionFilters() const
Returns the currently included mimetypes in the filter.
Definition: recursivecollectionfilterproxymodel.cpp:122
QString toString() const
virtual ~RecursiveCollectionFilterProxyModel()
Destroys the recursive collection filter proxy model.
Definition: recursivecollectionfilterproxymodel.cpp:60
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.