Akonadi
collectioncombobox.cpp
61 // Filter by access rights. TODO: maybe this functionality could be provided by CollectionFilterProxyModel, to save one proxy?
69 mParent->connect(mSelectionHandler, &AsyncSelectionHandler::collectionAvailable, mParent, [this](const auto &mi) {
93 Q_EMIT mParent->currentChanged(modelIndex.data(EntityTreeModel::CollectionRole).value<Collection>());
void setMimeTypeFilter(const QStringList &mimetypes)
Sets the content mimetypes the collections shall be filtered by.
Definition collectioncombobox.cpp:116
bool excludeVirtualCollections() const
Definition collectioncombobox.cpp:163
CollectionComboBox(QWidget *parent=nullptr)
Creates a new collection combobox.
Definition collectioncombobox.cpp:102
QStringList mimeTypeFilter() const
Returns the content mimetype the collections are filtered by.
Definition collectioncombobox.cpp:128
~CollectionComboBox() override
Destroys the collection combobox.
Collection::Rights accessRightsFilter() const
Returns the access rights the collections are filtered by.
Definition collectioncombobox.cpp:138
void setAccessRightsFilter(Collection::Rights rights)
Sets the access rights the collections shall be filtered by.
Definition collectioncombobox.cpp:133
Akonadi::Collection currentCollection() const
Returns the current selection.
Definition collectioncombobox.cpp:148
void setExcludeVirtualCollections(bool b)
Definition collectioncombobox.cpp:158
void setDefaultCollection(const Collection &collection)
Sets the collection that shall be selected by default.
Definition collectioncombobox.cpp:143
@ Display
Only retrieve collections for display, taking the local preference and enabled into account.
Definition collectionfetchscope.h:97
Helper integration between Akonadi and Qt.
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const=0
QComboBox(QWidget *parent)
currentIndex
QAbstractItemModel * model() const const
QVariant data(int role) const const
bool isValid() const const
int row() const const
QObject * parent() const const
T value() const const
QWidget(QWidget *parent, Qt::WindowFlags f)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 21 2025 11:50:41 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 21 2025 11:50:41 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.