File indexing completed on 2024-12-01 04:36:37

0001 /*
0002    SPDX-FileCopyrightText: 2020 David Faure <faure@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include <QItemDelegate>
0010 
0011 class EmojiCompletionDelegate : public QItemDelegate
0012 {
0013 public:
0014     explicit EmojiCompletionDelegate(QObject *parent = nullptr);
0015     ~EmojiCompletionDelegate() override;
0016 
0017     void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
0018 
0019 private:
0020     const QFont mEmojiFont;
0021 };