File indexing completed on 2024-06-23 05:18:26
0001 /* 0002 SPDX-FileCopyrightText: 2010 Volker Krause <vkrause@kde.org> 0003 0004 Based on kmail/kmlineeditspell.h/cpp 0005 SPDX-FileCopyrightText: 1997 Markus Wuebben <markus.wuebben@kde.org> 0006 0007 SPDX-License-Identifier: GPL-2.0-or-later 0008 */ 0009 0010 #pragma once 0011 0012 #include "messagecomposer_export.h" 0013 #include <PimCommonAkonadi/AddresseeLineEdit> 0014 namespace MessageComposer 0015 { 0016 /** 0017 * @brief The ComposerLineEdit class 0018 */ 0019 class MESSAGECOMPOSER_EXPORT ComposerLineEdit : public PimCommon::AddresseeLineEdit 0020 { 0021 Q_OBJECT 0022 0023 public: 0024 explicit ComposerLineEdit(bool useCompletion, QWidget *parent = nullptr); 0025 ~ComposerLineEdit() override; 0026 0027 Q_SIGNALS: 0028 void focusUp(); 0029 void focusDown(); 0030 0031 protected: 0032 void keyPressEvent(QKeyEvent *) override; 0033 }; 0034 }