akonadi
collectionfilterproxymodel.cpp
53 bool CollectionFilterProxyModel::Private::collectionAccepted( const QModelIndex &index, bool checkResourceVisibility )
56 const Collection collection = mParent->sourceModel()->data( index, CollectionModel::CollectionRole ).value<Collection>();
99 if ( collectionAccepted( childIndex, false /* don't check visibility of the parent, as we are checking the child now */ ) ) {
139 bool CollectionFilterProxyModel::filterAcceptsRow( int sourceRow, const QModelIndex &sourceParent) const
175 const Collection collection = sourceModel()->data( mapToSource( index ), CollectionModel::CollectionRole ).value<Collection>();
A proxy model that filters collections by mime type.
Definition: collectionfilterproxymodel.h:54
Helper for checking MIME types of Collections and Items.
Definition: mimetypechecker.h:109
void addMimeTypeFilters(const QStringList &mimeTypes)
Adds a list of mime types to be shown by the filter.
Definition: collectionfilterproxymodel.cpp:126
CollectionFilterProxyModel(QObject *parent=0)
Creates a new collection proxy filter model.
Definition: collectionfilterproxymodel.cpp:115
QStringList mimeTypeFilters() const
Returns the list of mime type filters.
Definition: collectionfilterproxymodel.cpp:144
void setExcludeVirtualCollections(bool exclude)
Sets whether we want virtual collections to be filtered or not.
Definition: collectionfilterproxymodel.cpp:155
The actual collection object.
Definition: collectionmodel.h:66
void addMimeTypeFilter(const QString &mimeType)
Adds a mime type to be shown by the filter.
Definition: collectionfilterproxymodel.cpp:133
AKONADI_DEPRECATED Id parent() const
Returns the identifier of the parent collection.
Definition: collection.cpp:129
virtual ~CollectionFilterProxyModel()
Destroys the collection proxy filter model.
Definition: collectionfilterproxymodel.cpp:121
bool isVirtual() const
Returns whether the collection is virtual, for example a search collection.
Definition: collection.cpp:261
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.