Messagelib

filternamewidget.h
1 /*
2  SPDX-FileCopyrightText: 2021 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "messagelist_private_export.h"
10 #include <QWidget>
11 class QLineEdit;
12 class KIconButton;
13 namespace MessageList
14 {
15 namespace Core
16 {
17 class MESSAGELIST_TESTS_EXPORT FilterNameWidget : public QWidget
18 {
19  Q_OBJECT
20 public:
21  explicit FilterNameWidget(QWidget *parent = nullptr);
22  ~FilterNameWidget() override;
23 
24  void setFilterName(const QString &str);
25  void setIconName(const QString &icon);
26 
27  Q_REQUIRED_RESULT QString filterName() const;
28 
29  void setExistingFilterNames(const QStringList &lst);
30  Q_REQUIRED_RESULT QString iconName() const;
31 Q_SIGNALS:
32  void updateOkButton(bool enabled);
33 
34 private:
35  QStringList mFilterListNames;
36  QLineEdit *const mName;
37  KIconButton *const mIconButton;
38 };
39 }
40 }
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Nov 30 2021 23:05:46 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.