File indexing completed on 2024-12-01 04:36:37
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 0009 #include <QLineEdit> 0010 0011 #include "libruqolawidgets_private_export.h" 0012 0013 class QAbstractItemModel; 0014 class CompletionListView; 0015 0016 class LIBRUQOLAWIDGETS_TESTS_EXPORT CompletionLineEdit : public QLineEdit 0017 { 0018 Q_OBJECT 0019 public: 0020 explicit CompletionLineEdit(QWidget *parent = nullptr); 0021 ~CompletionLineEdit() override; 0022 0023 void setCompletionModel(QAbstractItemModel *model); 0024 0025 Q_SIGNALS: 0026 void complete(const QModelIndex &index); 0027 0028 protected: 0029 CompletionListView *const mCompletionListView; 0030 };