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);
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 currentChanged(const Akonadi::Collection &collection)
This signal is emitted whenever the current selection has been changed.
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
QStringList mimeTypeFilters() const
Returns the list of mime type filters.
Definition collectionfilterproxymodel.cpp:144
A proxy model that filters entities by access rights.
Definition entityrightsfiltermodel.h:61
Collection::Rights accessRights() const
Returns the access rights that are used for filtering.
Definition entityrightsfiltermodel.cpp:90
void setItemPopulationStrategy(ItemPopulationStrategy strategy)
Sets the item population strategy of the model.
Definition entitytreemodel.cpp:1121
static QModelIndex modelIndexForCollection(const QAbstractItemModel *model, const Collection &collection)
Returns a QModelIndex in model which points to collection.
Definition entitytreemodel.cpp:1238
void setCollectionMonitored(const Collection &collection, bool monitored=true)
Sets whether the specified collection shall be monitored for changes.
Definition monitor.cpp:66
void fetchCollection(bool enable)
Enables automatic fetching of changed collections from the Akonadi storage.
Definition monitor.cpp:219
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.