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>
11class QLineEdit;
12class KIconButton;
13namespace MessageList
14{
15namespace Core
16{
17class MESSAGELIST_TESTS_EXPORT FilterNameWidget : public QWidget
18{
19 Q_OBJECT
20public:
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;
31Q_SIGNALS:
32 void updateOkButton(bool enabled);
33
34private:
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 Mon Nov 18 2024 12:07:25 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.