summary refs log tree commit diff
path: root/src/timeline/TimelineViewManager.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2023-05-25 19:07:13 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2023-05-25 19:07:13 +0200
commitf01940f57cd3365b42065dc8128dcbbdafca99f8 (patch)
tree20f7c14a644aa94e3e3097bafb3dae3f95d470b9 /src/timeline/TimelineViewManager.cpp
parentWorkaround a WM bug that switches the focus incorrectly after initiating a se... (diff)
downloadnheko-f01940f57cd3365b42065dc8128dcbbdafca99f8.tar.xz
Make emoji picker use the grid view
Diffstat (limited to 'src/timeline/TimelineViewManager.cpp')
-rw-r--r--src/timeline/TimelineViewManager.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/timeline/TimelineViewManager.cpp b/src/timeline/TimelineViewManager.cpp

index 4b171dc4..4b6a791f 100644 --- a/src/timeline/TimelineViewManager.cpp +++ b/src/timeline/TimelineViewManager.cpp
@@ -478,6 +478,9 @@ TimelineViewManager::completerFor(const QString &completerName, const QString &r auto proxy = new CompletionProxyModel(stickerModel, 1, static_cast<size_t>(-1) / 4); stickerModel->setParent(proxy); return proxy; + } else if (completerName == QLatin1String("emojigrid")) { + auto stickerModel = new GridImagePackModel(roomId.toStdString(), false); + return stickerModel; } else if (completerName == QLatin1String("stickergrid")) { auto stickerModel = new GridImagePackModel(roomId.toStdString(), true); return stickerModel;