MailCommon::FolderSelectionDialog Class
class MailCommon::FolderSelectionDialog| Header: | #include <MailCommon/FolderSelectionDialog> |
| CMake: | find_package(KPim6MailCommon REQUIRED)target_link_libraries(mytarget PRIVATE KPim6::MailCommon) |
| Inherits: | QDialog |
Public Functions
| FolderSelectionDialog(QWidget *parent, FolderSelectionDialog::SelectionFolderOptions options) | |
| virtual | ~FolderSelectionDialog() override |
| Akonadi::Collection | selectedCollection() const |
| Akonadi::Collection::List | selectedCollections() const |
| QAbstractItemView::SelectionMode | selectionMode() const |
| void | setAccountActivities(Akonadi::AccountActivitiesAbstract *accountActivities) |
| void | setSelectedCollection(const Akonadi::Collection &collection) |
| void | setSelectionMode(QAbstractItemView::SelectionMode mode) |
Private Slots
| void | collectionCreationResult(KJob *) |
| void | rowsInserted(const QModelIndex &col, int, int) |
| void | slotAddChildFolder() |
| void | slotDoubleClick(const QModelIndex &) |
| void | slotFolderTreeWidgetContextMenuRequested(const QPoint &) |
| void | slotSelectionChanged() |
Detailed Description
A dialog that lets the user select a folder. TODO: Move most of this to Akonadi::CollectionDialog
Member Function Documentation
FolderSelectionDialog::FolderSelectionDialog(QWidget *parent, FolderSelectionDialog::SelectionFolderOptions options)
Constructs a folder selection dialog with the given parent and options.
[override virtual noexcept] FolderSelectionDialog::~FolderSelectionDialog()
Destroys the dialog.
[private slot] void FolderSelectionDialog::collectionCreationResult(KJob *)
[private slot] void FolderSelectionDialog::rowsInserted(const QModelIndex &col, int, int)
Akonadi::Collection FolderSelectionDialog::selectedCollection() const
Returns the selected collection.
See also setSelectedCollection().
Akonadi::Collection::List FolderSelectionDialog::selectedCollections() const
Returns the selected collections.
QAbstractItemView::SelectionMode FolderSelectionDialog::selectionMode() const
Returns the selection mode of the folder tree view.
See also setSelectionMode().
void FolderSelectionDialog::setAccountActivities(Akonadi::AccountActivitiesAbstract *accountActivities)
Sets accountActivities, used to filter the folders by activity.
void FolderSelectionDialog::setSelectedCollection(const Akonadi::Collection &collection)
Selects the collection.
See also selectedCollection().
void FolderSelectionDialog::setSelectionMode(QAbstractItemView::SelectionMode mode)
Sets the selection mode of the folder tree view.
See also selectionMode().