MauiKit Calendar
collectioncomboboxmodel.cpp
61 // Filter by access rights. TODO: maybe this functionality could be provided by CollectionFilterProxyModel, to save one proxy?
68 mParent->connect(mRightsFilterModel, &QAbstractItemModel::rowsInserted, mParent, [this](const QModelIndex &parent, int start, int end) {
92 const Akonadi::Collection::Id id = mRightsFilterModel->data(mRightsFilterModel->index(row, 0), EntityTreeModel::CollectionIdRole).toLongLong();
qint64 Id
static Collection root()
NoItemPopulation
CollectionIdRole
void setCollectionMonitored(const Collection &collection, bool monitored=true)
void fetchCollection(bool enable)
The model for a combobox for selecting an Akonadi collection.
Definition collectioncomboboxmodel.h:44
void setDefaultCollectionId(qint64 collectionId)
Sets the collection that shall be selected by default.
Definition collectioncomboboxmodel.cpp:144
void setMimeTypeFilter(const QStringList &mimetypes)
Sets the content mimetypes the collections shall be filtered by.
Definition collectioncomboboxmodel.cpp:111
bool excludeVirtualCollections() const
Returns if the virual exollections are excluded.
Definition collectioncomboboxmodel.cpp:159
void setExcludeVirtualCollections(bool b)
Sets if the virtual collections are excluded.
Definition collectioncomboboxmodel.cpp:154
void setAccessRightsFilter(int rights)
Sets the access rights the collections shall be filtered by.
Definition collectioncomboboxmodel.cpp:128
Despite the name, this handles the presentation of collections including display text and icons,...
Definition colorproxymodel.h:13
Q_SCRIPTABLE Q_NOREPLY void start()
void rowsInserted(const QModelIndex &parent, int first, int last)
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
void setObjectName(QAnyStringView name)
virtual QVariant data(const QModelIndex &index, int role) const const override
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const override
virtual int rowCount(const QModelIndex &parent) const const override
virtual void setSourceModel(QAbstractItemModel *sourceModel) override
qlonglong toLongLong(bool *ok) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:35:11 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:35:11 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.