summary refs log tree commit diff
path: root/src/timeline
diff options
context:
space:
mode:
authorJoseph Donofry <joedonofry@gmail.com>2020-06-10 22:34:14 -0400
committerJoseph Donofry <joedonofry@gmail.com>2020-06-10 22:34:14 -0400
commit5e355c36fd2c4a7c8a0b99e3db7c963bd0973629 (patch)
treef45221a180106af8a33495cfa5792a3d333a6715 /src/timeline
parentRemove unused QML file (diff)
downloadnheko-5e355c36fd2c4a7c8a0b99e3db7c963bd0973629.tar.xz
Fix build issue on some versions of clang
Diffstat (limited to 'src/timeline')
-rw-r--r--src/timeline/TimelineViewManager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/timeline/TimelineViewManager.cpp b/src/timeline/TimelineViewManager.cpp
index bf671cb0..d647eb3f 100644
--- a/src/timeline/TimelineViewManager.cpp
+++ b/src/timeline/TimelineViewManager.cpp
@@ -80,6 +80,8 @@ TimelineViewManager::TimelineViewManager(QSharedPointer<UserSettings> userSettin
           "im.nheko.EmojiModel", 1, 0, "QAbstractItemModel", "Used by proxy models");
         qmlRegisterUncreatableType<emoji::Emoji>(
           "im.nheko.EmojiModel", 1, 0, "Emoji", "Used by emoji models");
+        qmlRegisterUncreatableMetaObject(emoji::staticMetaObject,
+          "im.nheko.EmojiModel", 1, 0, "EmojiCategory", "Error: Only enums");
 
 #ifdef USE_QUICK_VIEW
         view      = new QQuickView();