Warning, file /education/kwordquiz/src/filterproxysearchline.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 This file is part of KDevelop 0003 0004 SPDX-FileCopyrightText: 2018 Friedrich W. H. Kossebau <kossebau@kde.org> 0005 0006 SPDX-License-Identifier: LGPL-2.0-or-later 0007 */ 0008 0009 #ifndef KDEPROVIDER_FILTERPROXYSEARCHLINE_H 0010 #define KDEPROVIDER_FILTERPROXYSEARCHLINE_H 0011 0012 // Qt 0013 #include <QLineEdit> 0014 0015 class QTimer; 0016 class QSortFilterProxyModel; 0017 0018 class FilterProxySearchLine : public QLineEdit 0019 { 0020 Q_OBJECT 0021 0022 public: 0023 explicit FilterProxySearchLine(QWidget* parent = nullptr); 0024 0025 public: 0026 void setFilterProxyModel(QSortFilterProxyModel* filterProxyModel); 0027 0028 private: 0029 void updateFilter(); 0030 0031 private: 0032 QTimer* m_delayTimer = nullptr; 0033 QSortFilterProxyModel* m_filterProxyModel = nullptr; 0034 }; 0035 0036 #endif