TextEmoticonsWidgets::EmoticonTextEditSelector Class
A widget to select emojis. More...
| Header: | #include <TextEmoticonsWidgets/EmoticonTextEditSelector> |
| CMake: | find_package(KF6TextEmoticonsWidgets REQUIRED)target_link_libraries(mytarget PRIVATE KF6::TextEmoticonsWidgets) |
Public Functions
| EmoticonTextEditSelector(QWidget *parent = nullptr) | |
| virtual | ~EmoticonTextEditSelector() override |
| bool | customEmojiSupport() const |
| void | forceLineEditFocus() |
| void | loadEmoticons() |
| void | setCustomEmojiSupport(bool b) |
Signals
| void | insertEmoji(const QString &character) |
| void | insertEmojiIdentifier(const QString &identifier) |
Detailed Description
[Missing image emoticontexteditselector.png]
Author: Laurent Montel <montel@kde.org>
Member Function Documentation
[explicit] EmoticonTextEditSelector::EmoticonTextEditSelector(QWidget *parent = nullptr)
Constructs an EmoticonTextEditSelector with the given parent parent The parent widget
[override virtual noexcept] EmoticonTextEditSelector::~EmoticonTextEditSelector()
Destroys the EmoticonTextEditSelector
bool EmoticonTextEditSelector::customEmojiSupport() const
Return whether the custom emoji category is enabled. Returns true if custom emoji support is enabled
See also setCustomEmojiSupport().
void EmoticonTextEditSelector::forceLineEditFocus()
Focus the line edit for search.
[signal] void EmoticonTextEditSelector::insertEmoji(const QString &character)
This signal is emitted each time the user selects an emoji. character The actual emoji character
See also insertEmojiIdentifier.
[signal] void EmoticonTextEditSelector::insertEmojiIdentifier(const QString &identifier)
This signal is emitted each time the user selects an emoji. identifier The identifier of the emoji like eg. ":face_with_raised_eyebrow:"
See also insertEmoji.
void EmoticonTextEditSelector::loadEmoticons()
Do all the magic of creating an TextEmoticonsCore::UnicodeEmoticonManager and loading the categories and emojis to the widget.
void EmoticonTextEditSelector::setCustomEmojiSupport(bool b)
Set whether the custom emoji category should be shown. b true to show the custom emoji category, false otherwise
See also customEmojiSupport().