Akonadi

tagwidget.h
1 /*
2  This file is part of Akonadi
3 
4  Copyright (c) 2010 Tobias Koenig <[email protected]>
5  Copyright (c) 2014 Christian Mollekopf <[email protected]>
6 
7  This library is free software; you can redistribute it and/or modify it
8  under the terms of the GNU Library General Public License as published by
9  the Free Software Foundation; either version 2 of the License, or (at your
10  option) any later version.
11 
12  This library is distributed in the hope that it will be useful, but WITHOUT
13  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
15  License for more details.
16 
17  You should have received a copy of the GNU Library General Public License
18  along with this library; see the file COPYING.LIB. If not, write to the
19  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20  02110-1301, USA.
21 */
22 
23 #ifndef AKONADI_TAGWIDGET_H
24 #define AKONADI_TAGWIDGET_H
25 
26 #include "akonadiwidgets_export.h"
27 
28 #include <QLineEdit>
29 
30 #include "tag.h"
31 
32 namespace Akonadi
33 {
34 
41 class AKONADIWIDGETS_EXPORT TagWidget : public QWidget
42 {
43  Q_OBJECT
44 public:
45  explicit TagWidget(QWidget *parent = nullptr);
46  ~TagWidget();
47 
48  void setSelection(const Akonadi::Tag::List &tags);
49  Q_REQUIRED_RESULT Akonadi::Tag::List selection() const;
50 
51  void clearTags();
52  void setReadOnly(bool readOnly);
53 Q_SIGNALS:
54  void selectionChanged(const Akonadi::Tag::List &tags);
55 
56 private Q_SLOTS:
57  void editTags();
58  void updateView();
59 
60 private:
61  class Private;
63 };
64 
65 }
66 
67 #endif
A widget that shows a tag selection and provides means to edit that selection.
Definition: tagwidget.h:41
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Jun 5 2020 23:08:56 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.