Akonadi

tagselectiondialog.h
1 /*
2  This file is part of Akonadi
3 
4  SPDX-FileCopyrightText: 2014 Christian Mollekopf <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.0-or-later
7 */
8 
9 #ifndef AKONADI_TAGSELECTIONDIALOG_H
10 #define AKONADI_TAGSELECTIONDIALOG_H
11 
12 #include "akonadiwidgets_export.h"
13 
14 #include <QDialog>
15 
16 #include "tag.h"
17 
18 class QDialogButtonBox;
19 namespace Akonadi
20 {
21 
22 class TagModel;
23 
30 class AKONADIWIDGETS_EXPORT TagSelectionDialog : public QDialog
31 {
32  Q_OBJECT
33 public:
34  explicit TagSelectionDialog(QWidget *parent = nullptr);
35  TagSelectionDialog(TagModel *model, QWidget *parent = nullptr);
36  ~TagSelectionDialog() override;
37 
38  void setSelection(const Akonadi::Tag::List &tags);
39  Q_REQUIRED_RESULT Akonadi::Tag::List selection() const;
40 
41  Q_REQUIRED_RESULT QDialogButtonBox *buttons() const;
42 
43 Q_SIGNALS:
44  void selectionChanged(const Akonadi::Tag::List &tags);
45 
46 private:
47  class Private;
49 };
50 
51 }
52 
53 #endif
A widget that shows a tag selection and provides means to edit that selection.
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat Jul 4 2020 23:16:52 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.