File indexing completed on 2024-06-09 04:40:32
0001 /* 0002 SPDX-FileCopyrightText: 2012-2024 Laurent Montel <montel@kde.org> 0003 based on code from kopete 0004 0005 SPDX-License-Identifier: LGPL-2.0-or-later 0006 */ 0007 0008 #pragma once 0009 0010 #include "textemoticonswidgets_export.h" 0011 #include <KActionMenu> 0012 namespace TextEmoticonsWidgets 0013 { 0014 /** 0015 * @brief The EmoticonTextEditAction class 0016 * @author Laurent Montel <montel@kde.org> 0017 */ 0018 class TEXTEMOTICONSWIDGETS_EXPORT EmoticonTextEditAction : public KActionMenu 0019 { 0020 Q_OBJECT 0021 public: 0022 explicit EmoticonTextEditAction(QObject *parent); 0023 ~EmoticonTextEditAction() override; 0024 0025 void setCustomEmojiSupport(bool b); 0026 [[nodiscard]] bool customEmojiSupport() const; 0027 0028 Q_SIGNALS: 0029 void insertEmoticon(const QString &); 0030 0031 private: 0032 class EmoticonTextEditActionPrivate; 0033 std::unique_ptr<EmoticonTextEditActionPrivate> const d; 0034 }; 0035 }