RecursiveCollectionFilterProxyModel Class Reference
from PyKDE4.akonadi import *
Inherits: KRecursiveFilterProxyModel → QSortFilterProxyModel → QAbstractProxyModel → QAbstractItemModel → QObject
Namespace: Akonadi
Detailed Description
A model to filter out collections of non-matching content types.
- Since:
- 4.6
Methods | |
__init__ (self, QObject parent=0) | |
bool | acceptRow (self, int sourceRow, QModelIndex sourceParent) |
addContentMimeTypeInclusionFilter (self, QString mimeType) | |
addContentMimeTypeInclusionFilters (self, QStringList mimeTypes) | |
clearFilters (self) | |
int | columnCount (self, QModelIndex index) |
QStringList | contentMimeTypeInclusionFilters (self) |
setContentMimeTypeInclusionFilters (self, QStringList mimeTypes) | |
setSearchPattern (self, QString pattern) |
Method Documentation
__init__ | ( | self, | ||
QObject | parent=0 | |||
) |
Creates a new recursive collection filter proxy model.
- Parameters:
-
parent The parent object.
bool acceptRow | ( | self, | ||
int | sourceRow, | |||
QModelIndex | sourceParent | |||
) |
addContentMimeTypeInclusionFilter | ( | self, | ||
QString | mimeType | |||
) |
Add content mime type to be shown by the filter.
- Parameters:
-
mimeType A mime type to be shown.
addContentMimeTypeInclusionFilters | ( | self, | ||
QStringList | mimeTypes | |||
) |
Add content mime types to be shown by the filter.
- Parameters:
-
mimeTypes A list of content mime types to be included.
clearFilters | ( | self ) |
Clears the current filters.
int columnCount | ( | self, | ||
QModelIndex | index | |||
) |
QStringList contentMimeTypeInclusionFilters | ( | self ) |
Returns the currently included mimetypes in the filter.
setContentMimeTypeInclusionFilters | ( | self, | ||
QStringList | mimeTypes | |||
) |
Replace the content mime types to be shown by the filter.
- Parameters:
-
mimeTypes A list of content mime types to be included.
setSearchPattern | ( | self, | ||
QString | pattern | |||
) |
Add search pattern
- Since:
- 4.8.1