Akonadi::TagSelectionDialog Class

Header: #include <Akonadi/TagSelectionDialog>
CMake: find_package(KPim6 REQUIRED COMPONENTS AkonadiWidgets)
target_link_libraries(mytarget PRIVATE KPim6::AkonadiWidgets)

Public Functions

TagSelectionDialog(QWidget *parent = nullptr)
TagSelectionDialog(Akonadi::TagModel *model, QWidget *parent = nullptr)
virtual ~TagSelectionDialog() override
QDialogButtonBox *buttons() const
Akonadi::Tag::List selection() const
void setSelection(const Akonadi::Tag::List &tags)

Signals

void selectionChanged(const Akonadi::Tag::List &tags)

Detailed Description

A widget that shows a tag selection and provides means to edit that selection.

TODO A standalone dialog version that takes an item and takes care of writing back the changes would be useful.

Member Function Documentation

[explicit] TagSelectionDialog::TagSelectionDialog(QWidget *parent = nullptr)

Creates a new tag selection dialog. parent The parent widget.

TagSelectionDialog::TagSelectionDialog(Akonadi::TagModel *model, QWidget *parent = nullptr)

Creates a new tag selection dialog with a custom tag model. model The tag model to use. parent The parent widget.

[override virtual noexcept] TagSelectionDialog::~TagSelectionDialog()

Destroys the tag selection dialog.

QDialogButtonBox *TagSelectionDialog::buttons() const

Returns the button box of the dialog. Returns The dialog button box.

Akonadi::Tag::List TagSelectionDialog::selection() const

Returns the tags selected in the dialog. Returns A list of selected tags.

See also setSelection().

[signal] void TagSelectionDialog::selectionChanged(const Akonadi::Tag::List &tags)

Emitted when the tag selection has changed. tags The new list of selected tags.

void TagSelectionDialog::setSelection(const Akonadi::Tag::List &tags)

Sets the selected tags in the dialog. tags The list of tags to select.

See also selection().