File indexing completed on 2024-12-08 04:34:09
0001 /* 0002 SPDX-FileCopyrightText: 2022-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <QWidget> 0010 0011 #include "libruqolawidgets_private_export.h" 0012 class QLineEdit; 0013 class QCheckBox; 0014 class LIBRUQOLAWIDGETS_TESTS_EXPORT BannerInfoListSearchLineWidget : public QWidget 0015 { 0016 Q_OBJECT 0017 public: 0018 explicit BannerInfoListSearchLineWidget(QWidget *parent = nullptr); 0019 ~BannerInfoListSearchLineWidget() override; 0020 0021 [[nodiscard]] QString searchText() const; 0022 0023 [[nodiscard]] bool showOnlyUnread() const; 0024 0025 Q_SIGNALS: 0026 void filterChanged(); 0027 0028 private: 0029 QLineEdit *const mSearchLineEdit; 0030 QCheckBox *const mOnlyUnReadCheckBox; 0031 };