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>());
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
CollectionComboBox(QWidget *parent=nullptr)
Creates a new collection combobox.
Definition collectioncombobox.cpp:104
QStringList mimeTypeFilter() const
Returns the content mimetype the collections are filtered by.
Definition collectioncombobox.cpp:130
~CollectionComboBox() override
Destroys the collection combobox.
Collection::Rights accessRightsFilter() const
Returns the access rights the collections are filtered by.
Definition collectioncombobox.cpp:140
void setAccessRightsFilter(Collection::Rights rights)
Sets the access rights the collections shall be filtered by.
Definition collectioncombobox.cpp:135
Akonadi::Collection currentCollection() const
Returns the current selection.
Definition collectioncombobox.cpp:150
void setExcludeVirtualCollections(bool b)
Definition collectioncombobox.cpp:160
void setDefaultCollection(const Collection &collection)
Sets the collection that shall be selected by default.
Definition collectioncombobox.cpp:145
@ 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 Jan 24 2025 11:49:58 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:58 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.