akonadi
collectioncombobox.cpp
108 emit mParent->currentChanged(modelIndex.data(EntityTreeModel::CollectionRole).value<Collection>());
117MobileEventHandler::MobileEventHandler(CollectionComboBox *comboBox, CollectionFilterProxyModel *mimeTypeFilter,
129 if (object == mComboBox && mComboBox->isEnabled() && event->type() == QEvent::MouseButtonPress) {
152 const QModelIndex index = Akonadi::EntityTreeModel::modelIndexForCollection(mComboBox->model(), collection);
163 MobileEventHandler *handler = new MobileEventHandler(this, d->mMimeTypeFilterModel, d->mRightsFilterModel, d->mBaseModel);
173 MobileEventHandler *handler = new MobileEventHandler(this, d->mMimeTypeFilterModel, d->mRightsFilterModel, d->mBaseModel);
A combobox for selecting an Akonadi collection.
Definition: collectioncombobox.h:63
CollectionComboBox(QWidget *parent=0)
Creates a new collection combobox.
Definition: collectioncombobox.cpp:158
void setMimeTypeFilter(const QStringList &mimetypes)
Sets the content mimetypes the collections shall be filtered by.
Definition: collectioncombobox.cpp:183
bool excludeVirtualCollections() const
Definition: collectioncombobox.cpp:230
QStringList mimeTypeFilter() const
Returns the content mimetype the collections are filtered by.
Definition: collectioncombobox.cpp:195
Collection::Rights accessRightsFilter() const
Returns the access rights the collections are filtered by.
Definition: collectioncombobox.cpp:205
void setAccessRightsFilter(Collection::Rights rights)
Sets the access rights the collections shall be filtered by.
Definition: collectioncombobox.cpp:200
Akonadi::Collection currentCollection() const
Returns the current selection.
Definition: collectioncombobox.cpp:215
void setExcludeVirtualCollections(bool b)
Definition: collectioncombobox.cpp:225
void setDefaultCollection(const Collection &collection)
Sets the collection that shall be selected by default.
Definition: collectioncombobox.cpp:210
A proxy model that filters collections by mime type.
Definition: collectionfilterproxymodel.h:55
A proxy model that filters entities by access rights.
Definition: entityrightsfiltermodel.h:61
A model for collections and items together.
Definition: entitytreemodel.h:319
static QModelIndex modelIndexForCollection(const QAbstractItemModel *model, const Collection &collection)
Returns a QModelIndex in model which points to collection.
Definition: entitytreemodel.cpp:1238
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.