Improve performance of the emoji model

Only display up to 10 emojis when searching

Related to #310 but a better solution needs to be found because we get
the same problem on big room when autocompleting usernames.
This commit is contained in:
Carl Schwan
2021-03-20 15:32:33 +01:00
parent 743c9972b9
commit 603d4e1f0d
7 changed files with 31 additions and 10 deletions

View File

@@ -10,12 +10,12 @@ import org.kde.kirigami 2.13 as Kirigami
import NeoChat.Component 1.0
import org.kde.neochat 1.0
import org.kde.neochat 1.0 as NeoChat
ColumnLayout {
property string emojiCategory: "history"
property var textArea
property var emojiModel
readonly property var emojiModel: NeoChat.EmojiModel
signal chosen(string emoji)