File indexing completed on 2024-05-12 04:39:20
0001 /* 0002 SPDX-FileCopyrightText: 2018 Friedrich W. H. Kossebau <kossebau@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef CLANGTIDY_CHECKLISTFILTERPROXYSEARCHLINE_H 0008 #define CLANGTIDY_CHECKLISTFILTERPROXYSEARCHLINE_H 0009 0010 // Qt 0011 #include <QLineEdit> 0012 0013 class QTimer; 0014 class QSortFilterProxyModel; 0015 0016 namespace ClangTidy 0017 { 0018 0019 class CheckListFilterProxySearchLine : public QLineEdit 0020 { 0021 Q_OBJECT 0022 0023 public: 0024 explicit CheckListFilterProxySearchLine(QWidget* parent = nullptr); 0025 0026 public: 0027 void setFilterProxyModel(QSortFilterProxyModel* filterProxyModel); 0028 0029 private: 0030 void updateFilter(); 0031 0032 private: 0033 QTimer* m_delayTimer; 0034 QSortFilterProxyModel* m_filterProxyModel = nullptr; 0035 }; 0036 0037 } 0038 0039 #endif