Messagelib

filternamewidget.h
1 /*
2  SPDX-FileCopyrightText: 2021-2024 Laurent Montel <montel@kde.org>
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  [[nodiscard]] QString filterName() const;
28 
29  void setExistingFilterNames(const QStringList &lst);
30  [[nodiscard]] 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-2024 The KDE developers.
Generated on Thu Feb 15 2024 03:55:20 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.