Reimplement normal emoji completion

BUG: 460632
This commit is contained in:
Tobias Fella
2022-11-26 02:41:50 +01:00
parent f27b64edef
commit dd0300d025
10 changed files with 40 additions and 13 deletions

View File

@@ -19,10 +19,12 @@ class CustomEmojiModel : public QAbstractListModel
public:
enum Roles {
Name,
Name = Qt::DisplayRole,
ImageURL,
ModelData, // for emulating the regular emoji model's usage, otherwise the UI code would get too complicated
MxcUrl,
MxcUrl = 50,
DisplayRole = 51,
ReplacedTextRole = 52,
};
Q_ENUM(Roles);