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