File indexing completed on 2024-05-12 16:27:21

0001 /*
0002    SPDX-FileCopyrightText: 2020-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 #include "libruqolawidgets_private_export.h"
0009 #include <QObject>
0010 class QLineEdit;
0011 /**
0012  * @brief The LineEditCatchReturnKey class
0013  * @author Laurent Montel <montel@kde.org>
0014  */
0015 class LIBRUQOLAWIDGETS_TESTS_EXPORT LineEditCatchReturnKey : public QObject
0016 {
0017     Q_OBJECT
0018 public:
0019     explicit LineEditCatchReturnKey(QLineEdit *lineEdit, QObject *parent = nullptr);
0020     ~LineEditCatchReturnKey() override;
0021 
0022 protected:
0023     bool eventFilter(QObject *obj, QEvent *event) override;
0024 
0025 private:
0026     QLineEdit *const mLineEdit;
0027 };