TextEmoticonsCore::EmojiModelManager Class
The EmojiModelManager class Author: Laurent Montel <montel@kde.org>. More...
| Header: | #include <TextEmoticonsCore/EmojiModelManager> |
| CMake: | find_package(KF6TextEmoticonsCore REQUIRED)target_link_libraries(mytarget PRIVATE KF6::TextEmoticonsCore) |
| Inherits: | QObject |
Public Functions
| void | addIdentifier(const QString &identifier) |
| TextEmoticonsCore::CustomEmojiIconManager * | customEmojiIconManager() const |
| TextEmoticonsCore::EmojiModel * | emojiModel() const |
| TextEmoticonsCore::EmojiModelManager::EmojiTone | emojiTone() const |
| const QStringList & | recentIdentifier() const |
| void | setCustomEmojiIconManager(TextEmoticonsCore::CustomEmojiIconManager *newCustomEmojiIconManager) |
| void | setEmojiTone(TextEmoticonsCore::EmojiModelManager::EmojiTone tone) |
| void | setRecentIdentifier(const QStringList &newRecentIdentifier) |
| void | setRecentSettingsGroupName(const QString &key) |
Signals
| void | emojiToneChanged() |
| void | usedIdentifierChanged(const QStringList &lst) |
Static Public Members
| TextEmoticonsCore::EmojiModelManager * | self() |
Protected Functions
| EmojiModelManager(QObject *parent = nullptr) | |
| virtual | ~EmojiModelManager() override |
Detailed Description
Member Function Documentation
[explicit protected] EmojiModelManager::EmojiModelManager(QObject *parent = nullptr)
Constructs an EmojiModelManager with the given parent parent The parent QObject
[override virtual noexcept protected] EmojiModelManager::~EmojiModelManager()
Destroys the EmojiModelManager
[invokable] void EmojiModelManager::addIdentifier(const QString &identifier)
Adds an identifier to the recent identifiers list identifier The identifier to add
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
TextEmoticonsCore::CustomEmojiIconManager *EmojiModelManager::customEmojiIconManager() const
Returns the custom emoji icon manager Returns A pointer to the CustomEmojiIconManager instance
See also setCustomEmojiIconManager().
TextEmoticonsCore::EmojiModel *EmojiModelManager::emojiModel() const
Returns the emoji model Returns A pointer to the EmojiModel instance
TextEmoticonsCore::EmojiModelManager::EmojiTone EmojiModelManager::emojiTone() const
Returns the current emoji tone Returns The EmojiTone setting
See also setEmojiTone().
[signal] void EmojiModelManager::emojiToneChanged()
Emitted when the emoji tone changes
const QStringList &EmojiModelManager::recentIdentifier() const
Returns the list of recent identifiers Returns A list of recent emoticon identifiers
See also setRecentIdentifier().
[static] TextEmoticonsCore::EmojiModelManager *EmojiModelManager::self()
Returns the singleton instance of EmojiModelManager Returns A pointer to the EmojiModelManager singleton
void EmojiModelManager::setCustomEmojiIconManager(TextEmoticonsCore::CustomEmojiIconManager *newCustomEmojiIconManager)
Sets the custom emoji icon manager newCustomEmojiIconManager The new CustomEmojiIconManager instance
See also customEmojiIconManager().
void EmojiModelManager::setEmojiTone(TextEmoticonsCore::EmojiModelManager::EmojiTone tone)
Sets the emoji tone tone The emoji tone to set
See also emojiTone().
void EmojiModelManager::setRecentIdentifier(const QStringList &newRecentIdentifier)
Sets the list of recent identifiers newRecentIdentifier The new list of recent identifiers
See also recentIdentifier().
void EmojiModelManager::setRecentSettingsGroupName(const QString &key)
Set the settings group name used to store the recent identifiers. key The settings group name
Note: If not set, the group name is "EmoticonRecentUsed".
[signal] void EmojiModelManager::usedIdentifierChanged(const QStringList &lst)
Emitted when the used identifier list changes lst The new list of recent identifiers