Akonadi
entitymimetypefiltermodel.cpp
79bool EntityMimeTypeFilterModel::filterAcceptsColumn(int sourceColumn, const QModelIndex &sourceParent) const
87bool EntityMimeTypeFilterModel::filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const
141QVariant EntityMimeTypeFilterModel::headerData(int section, Qt::Orientation orientation, int role) const
152QModelIndexList EntityMimeTypeFilterModel::match(const QModelIndex &start, int role, const QVariant &value, int hits, Qt::MatchFlags flags) const
183 const QVariant value = sourceModel()->data(mapToSource(parent), EntityTreeModel::ColumnCountRole + (EntityTreeModel::TerminalUserRole * d->m_headerGroup));
A proxy model that filters entities by mime type.
Definition entitymimetypefiltermodel.h:50
void setHeaderGroup(EntityTreeModel::HeaderGroup headerGroup)
Sets the header set of the filter model.
Definition entitymimetypefiltermodel.cpp:132
QStringList mimeTypeInclusionFilters() const
Returns the list of mime type inclusion filters.
Definition entitymimetypefiltermodel.cpp:112
void addMimeTypeInclusionFilter(const QString &mimeType)
Add mime type to be shown by the filter.
Definition entitymimetypefiltermodel.cpp:65
void addMimeTypeExclusionFilter(const QString &mimeType)
Add mime type to be excluded by the filter.
Definition entitymimetypefiltermodel.cpp:72
void addMimeTypeInclusionFilters(const QStringList &mimeTypes)
Add mime types to be shown by the filter.
Definition entitymimetypefiltermodel.cpp:51
~EntityMimeTypeFilterModel() override
Destroys the entity mime type filter model.
EntityMimeTypeFilterModel(QObject *parent=nullptr)
Creates a new entity mime type filter model.
Definition entitymimetypefiltermodel.cpp:43
QStringList mimeTypeExclusionFilters() const
Returns the list of mime type exclusion filters.
Definition entitymimetypefiltermodel.cpp:118
void addMimeTypeExclusionFilters(const QStringList &mimeTypes)
Add mimetypes to filter out.
Definition entitymimetypefiltermodel.cpp:58
HeaderGroup
Describes what header information the model shall return.
Definition entitytreemodel.h:370
@ CollectionTreeHeaders
Header information for a collection-only tree.
Definition entitytreemodel.h:372
@ TerminalUserRole
Last role for user extensions. Don't use a role beyond this or headerData will break.
Definition entitytreemodel.h:342
Q_SCRIPTABLE Q_NOREPLY void start()
Helper integration between Akonadi and Qt.
KIOCORE_EXPORT QStringList list(const QString &fileClass)
sourceModel
void push_back(parameter_type value)
int column() const const
QVariant data(int role) const const
bool isValid() const const
int row() const const
QModelIndex sibling(int row, int column) const const
QObject * parent() const const
virtual bool canFetchMore(const QModelIndex &parent) const const override
virtual bool filterAcceptsColumn(int source_column, const QModelIndex &source_parent) const const
virtual Qt::ItemFlags flags(const QModelIndex &index) const const override
void invalidateFilter()
virtual QModelIndex mapFromSource(const QModelIndex &sourceIndex) const const override
virtual QModelIndex mapToSource(const QModelIndex &proxyIndex) const const override
virtual QModelIndexList match(const QModelIndex &start, int role, const QVariant &value, int hits, Qt::MatchFlags flags) const const override
virtual int rowCount(const QModelIndex &parent) const const override
UserRole
typedef MatchFlags
Orientation
void * data()
bool isValid() const const
int toInt(bool *ok) const const
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 Fri Nov 8 2024 11:54:19 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 11:54:19 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.