File indexing completed on 2024-05-19 05:04:05
0001 /* 0002 SPDX-FileCopyrightText: 2021-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 #pragma once 0007 0008 #include "libruqolawidgets_private_export.h" 0009 #include "misc/searchwithdelaylineedit.h" 0010 class QCompleter; 0011 class QStringListModel; 0012 class RocketChatAccount; 0013 class LIBRUQOLAWIDGETS_TESTS_EXPORT SearchMessageWithDelayLineEdit : public SearchWithDelayLineEdit 0014 { 0015 Q_OBJECT 0016 public: 0017 explicit SearchMessageWithDelayLineEdit(RocketChatAccount *account, QWidget *parent = nullptr); 0018 ~SearchMessageWithDelayLineEdit() override; 0019 void addCompletionItem(const QString &str); 0020 0021 private: 0022 QStringList mListCompetion; 0023 QCompleter *const mCompleter; 0024 QStringListModel *const mCompleterListModel; 0025 RocketChatAccount *const mCurrentRocketChatAccount; 0026 };