akonadi
collectiondialog_desktop.cpp
50 Private(QAbstractItemModel *customModel, CollectionDialog *parent, CollectionDialogOptions options)
112 mParent->connect(mView->selectionModel(), SIGNAL(selectionChanged(QItemSelection,QItemSelection)),
211 mParent->enableButton(KDialog::User1, (canCreateChildCollections && !parentCollection.isVirtual()));
224 mParent->setButtonGuiItem(User1, KGuiItem(i18n("&New Subfolder..."), QLatin1String("folder-new"),
237 bool CollectionDialog::Private::canCreateCollection(const Akonadi::Collection &parentCollection) const
298 CollectionDialog::CollectionDialog(CollectionDialogOptions options, QAbstractItemModel *model, QWidget *parent)
328 const Collection collection = index.model()->data(index, EntityTreeModel::CollectionRole).value<Collection>();
void setAccessRightsFilter(Collection::Rights rights)
Sets the access rights that the listed collections shall match with.
Definition: collectiondialog_desktop.cpp:359
CollectionDialog(QWidget *parent=0)
Creates a new collection dialog.
Definition: collectiondialog_desktop.cpp:286
Akonadi::Collection selectedCollection() const
Returns the selected collection if the selection mode is QAbstractItemView::SingleSelection.
Definition: collectiondialog_desktop.cpp:309
void setSelectionMode(QAbstractItemView::SelectionMode mode)
Sets the selection mode.
Definition: collectiondialog_desktop.cpp:383
bool useFolderByDefault() const
Definition: collectiondialog_desktop.cpp:404
bool isValid() const
void setContentsMargins(int left, int top, int right, int bottom)
void setMimeTypeFilter(const QStringList &mimeTypes)
Sets the mime types any of which the selected collection(s) shall support.
Definition: collectiondialog_desktop.cpp:338
A proxy model that filters collections by mime type.
Definition: collectionfilterproxymodel.h:54
Akonadi::Collection::List selectedCollections() const
Returns the list of selected collections.
Definition: collectiondialog_desktop.cpp:321
Do not include items in the model.
Definition: entitytreemodel.h:409
bool contains(const QString &str, Qt::CaseSensitivity cs) const
void setDragDropMode(DragDropMode behavior)
T value() const
Can create new subcollections in this collection.
Definition: collection.h:92
A proxy model that filters entities by access rights.
Definition: entityrightsfiltermodel.h:60
void setParentCollection(const Collection &parent)
Set the parent collection of this object.
Definition: entity.cpp:194
void setName(const QString &name)
Sets the i18n'ed name of the collection.
Definition: collection.cpp:93
void setUseFolderByDefault(bool b)
Definition: collectiondialog_desktop.cpp:398
bool isValid() const
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
QAbstractItemView::SelectionMode selectionMode() const
Returns the selection mode.
Definition: collectiondialog_desktop.cpp:388
void append(const T &value)
void setContentMimeTypes(const QStringList &mimetypes)
Allow to specify collection content mimetype when we create new one.
Definition: collectiondialog_desktop.cpp:409
A view to show an item/collection tree provided by an EntityTreeModel.
Definition: entitytreeview.h:71
bool isEmpty() const
QModelIndexList selectedIndexes() const
Can create new items in this collection.
Definition: collection.h:89
virtual QVariant data(const QModelIndex &index, int role) const =0
void setDefaultCollection(const Collection &collection)
Sets the collection that shall be selected by default.
Definition: collectiondialog_desktop.cpp:378
void changeCollectionDialogOptions(CollectionDialogOptions options)
Change collection dialog options.
Definition: collectiondialog_desktop.cpp:393
Rights rights() const
Returns the rights the user has on the collection.
Definition: collection.cpp:99
QStringList mimeTypeFilter() const
Returns the mime types any of which the selected collection(s) shall support.
Definition: collectiondialog_desktop.cpp:354
Collection::Rights accessRightsFilter() const
Sets the access rights that the listed collections shall match with.
Definition: collectiondialog_desktop.cpp:367
void setItemPopulationStrategy(ItemPopulationStrategy strategy)
Sets the item population strategy of the model.
Definition: entitytreemodel.cpp:1121
void setDescription(const QString &text)
Sets the text that will be shown in the dialog.
Definition: collectiondialog_desktop.cpp:372
const QAbstractItemModel * model() const
A model for collections and items together.
Definition: entitytreemodel.h:318
QStringList contentMimeTypes() const
Returns a list of possible content mimetypes, e.g.
Definition: collection.cpp:115
Job that creates a new collection in the Akonadi storage.
Definition: collectioncreatejob.h:52
void setContentMimeTypes(const QStringList &types)
Sets the list of possible content mime types.
Definition: collection.cpp:120
bool isVirtual() const
Returns whether the collection is virtual, for example a search collection.
Definition: collection.cpp:261
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.