Akonadi
entityrightsfiltermodel.cpp
63bool EntityRightsFilterModel::filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const
96QModelIndexList EntityRightsFilterModel::match(const QModelIndex &start, int role, const QVariant &value, int hits, Qt::MatchFlags flags) const
A proxy model that filters entities by access rights.
Definition entityrightsfiltermodel.h:48
void setAccessRights(Collection::Rights rights)
Sets the access rights the entities shall be filtered against.
Definition entityrightsfiltermodel.cpp:72
~EntityRightsFilterModel() override
Destroys the entity rights filter model.
Qt::ItemFlags flags(const QModelIndex &index) const override
Definition entityrightsfiltermodel.cpp:85
EntityRightsFilterModel(QObject *parent=nullptr)
Creates a new entity rights filter model.
Definition entityrightsfiltermodel.cpp:54
QModelIndexList match(const QModelIndex &start, int role, const QVariant &value, int hits=1, Qt::MatchFlags flags=Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap)) const override
Definition entityrightsfiltermodel.cpp:96
Collection::Rights accessRights() const
Returns the access rights that are used for filtering.
Definition entityrightsfiltermodel.cpp:79
Q_SCRIPTABLE Q_NOREPLY void start()
Helper integration between Akonadi and Qt.
sourceModel
void push_back(parameter_type value)
QVariant data(int role) const const
bool isValid() const const
virtual Qt::ItemFlags flags(const QModelIndex &index) const const override
virtual QModelIndex index(int row, int column, const QModelIndex &parent) 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
void setRecursiveFilteringEnabled(bool recursive)
UserRole
typedef ItemFlags
typedef MatchFlags
T value() const const
Q_D(Todo)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:01:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:01:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.