summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2023-06-19 20:08:10 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2023-06-19 20:08:10 +0200
commite0e5912b7047b5ef557139801651bf52bb94cd2c (patch)
tree0c26a651d1fefbc4c4bc2997a25c1d6bdd6950de /src
parentProperly register image pack types (diff)
downloadnheko-e0e5912b7047b5ef557139801651bf52bb94cd2c.tar.xz
Fix completer size
Diffstat (limited to 'src')
-rw-r--r--src/timeline/TimelineViewManager.cpp2
-rw-r--r--src/timeline/TimelineViewManager.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/timeline/TimelineViewManager.cpp b/src/timeline/TimelineViewManager.cpp
index 2f6553e5..b8bd679b 100644
--- a/src/timeline/TimelineViewManager.cpp
+++ b/src/timeline/TimelineViewManager.cpp
@@ -436,7 +436,7 @@ TimelineViewManager::focusMessageInput()
     emit focusInput();
 }
 
-QObject *
+QAbstractItemModel *
 TimelineViewManager::completerFor(const QString &completerName, const QString &roomId)
 {
     if (completerName == QLatin1String("user")) {
diff --git a/src/timeline/TimelineViewManager.h b/src/timeline/TimelineViewManager.h
index a4bc6c41..53179b44 100644
--- a/src/timeline/TimelineViewManager.h
+++ b/src/timeline/TimelineViewManager.h
@@ -134,8 +134,8 @@ public slots:
 
     void setVideoCallItem();
 
-    QObject *completerFor(const QString &completerName,
-                          const QString &roomId = QLatin1String(QLatin1String("")));
+    QAbstractItemModel *completerFor(const QString &completerName,
+                                     const QString &roomId = QLatin1String(QLatin1String("")));
     void forwardMessageToRoom(mtx::events::collections::TimelineEvents const *e, QString roomId);
 
     RoomlistModel *rooms() { return rooms_; }