Akonadi
collectioncombobox.cpp
63 // Filter by access rights. TODO: maybe this functionality could be provided by CollectionFilterProxyModel, to save one proxy?
71 mParent->connect(mSelectionHandler, &AsyncSelectionHandler::collectionAvailable, mParent, [this](const auto &mi) {
95 Q_EMIT mParent->currentChanged(modelIndex.data(EntityTreeModel::CollectionRole).value<Collection>());
A model for collections and items together.
Definition: entitytreemodel.h:305
void setExcludeVirtualCollections(bool b)
Definition: collectioncombobox.cpp:160
T value() const const
Collection::Rights accessRightsFilter() const
Returns the access rights the collections are filtered by.
Definition: collectioncombobox.cpp:140
A combobox for selecting an Akonadi collection.
Definition: collectioncombobox.h:53
@ Display
Only retrieve collections for display, taking the local preference and enabled into account.
Definition: collectionfetchscope.h:97
A proxy model that filters entities by access rights.
Definition: entityrightsfiltermodel.h:47
currentIndex
QAbstractItemModel * model() const const
A proxy model that filters collections by mime type.
Definition: collectionfilterproxymodel.h:43
CollectionComboBox(QWidget *parent=nullptr)
Creates a new collection combobox.
Definition: collectioncombobox.cpp:104
void setDefaultCollection(const Collection &collection)
Sets the collection that shall be selected by default.
Definition: collectioncombobox.cpp:145
QVariant data(int role) const const
~CollectionComboBox() override
Destroys the collection combobox.
bool isValid() const const
QStringList mimeTypeFilter() const
Returns the content mimetype the collections are filtered by.
Definition: collectioncombobox.cpp:130
int row() const const
Akonadi::Collection currentCollection() const
Returns the current selection.
Definition: collectioncombobox.cpp:150
void setAccessRightsFilter(Collection::Rights rights)
Sets the access rights the collections shall be filtered by.
Definition: collectioncombobox.cpp:135
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const=0
void setMimeTypeFilter(const QStringList &mimetypes)
Sets the content mimetypes the collections shall be filtered by.
Definition: collectioncombobox.cpp:118
bool excludeVirtualCollections() const
Definition: collectioncombobox.cpp:165
const QAbstractItemModel * model() const const
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon May 8 2023 03:52:15 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon May 8 2023 03:52:15 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.