Akonadi
collectiondialog.h
105 explicit CollectionDialog(CollectionDialogOptions options, QAbstractItemModel *model = nullptr, QWidget *parent = nullptr);
void setContentMimeTypes(const QStringList &mimetypes)
Allow to specify collection content mimetype when we create new one.
Definition collectiondialog.cpp:411
void setUseFolderByDefault(bool b)
Definition collectiondialog.cpp:400
Akonadi::Collection selectedCollection() const
Returns the selected collection if the selection mode is QAbstractItemView::SingleSelection.
Definition collectiondialog.cpp:311
~CollectionDialog() override
Destroys the collection dialog.
void changeCollectionDialogOptions(CollectionDialogOptions options)
Change collection dialog options.
Definition collectiondialog.cpp:395
QAbstractItemView::SelectionMode selectionMode() const
Returns the selection mode.
Definition collectiondialog.cpp:390
void setDefaultCollection(const Collection &collection)
Sets the collection that shall be selected by default.
Definition collectiondialog.cpp:380
void setSelectionMode(QAbstractItemView::SelectionMode mode)
Sets the selection mode.
Definition collectiondialog.cpp:385
void setAccessRightsFilter(Collection::Rights rights)
Sets the access rights that the listed collections shall match with.
Definition collectiondialog.cpp:361
QStringList mimeTypeFilter() const
Returns the mime types any of which the selected collection(s) shall support.
Definition collectiondialog.cpp:356
void setMimeTypeFilter(const QStringList &mimeTypes)
Sets the mime types any of which the selected collection(s) shall support.
Definition collectiondialog.cpp:340
void setDescription(const QString &text)
Sets the text that will be shown in the dialog.
Definition collectiondialog.cpp:374
CollectionDialog(QWidget *parent=nullptr)
Creates a new collection dialog.
Definition collectiondialog.cpp:291
Collection::Rights accessRightsFilter() const
Sets the access rights that the listed collections shall match with.
Definition collectiondialog.cpp:369
Akonadi::Collection::List selectedCollections() const
Returns the list of selected collections.
Definition collectiondialog.cpp:323
bool useFolderByDefault() const
Definition collectiondialog.cpp:406
Helper integration between Akonadi and Qt.
SelectionMode
QDialog(QWidget *parent, Qt::WindowFlags f)
Q_OBJECTQ_OBJECT
QObject * parent() 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.