summary refs log tree commit diff
path: root/src/timeline/InputBar.cpp
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2021-03-14 01:54:09 +0000
committerGitHub <noreply@github.com>2021-03-14 01:54:09 +0000
commitc47ae99805889336c83269ea204939c72bc1d180 (patch)
tree7d6a23e1a2fbe302b009153e26ea36268b4729e4 /src/timeline/InputBar.cpp
parentMerge pull request #520 from Nheko-Reborn/openssl-fixes (diff)
parentFix room completions not showing label avatars (diff)
downloadnheko-c47ae99805889336c83269ea204939c72bc1d180.tar.xz
Merge pull request #493 from Jedi18/quickswitcher_qml
Port QuickSwitcher to QML
Diffstat (limited to 'src/timeline/InputBar.cpp')
-rw-r--r--src/timeline/InputBar.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/timeline/InputBar.cpp b/src/timeline/InputBar.cpp

index 490fccc3..d5a6a1dd 100644 --- a/src/timeline/InputBar.cpp +++ b/src/timeline/InputBar.cpp
@@ -192,28 +192,6 @@ InputBar::nextText() return text(); } -QObject * -InputBar::completerFor(QString completerName) -{ - if (completerName == "user") { - auto userModel = new UsersModel(room->roomId().toStdString()); - auto proxy = new CompletionProxyModel(userModel); - userModel->setParent(proxy); - return proxy; - } else if (completerName == "emoji") { - auto emojiModel = new emoji::EmojiModel(); - auto proxy = new CompletionProxyModel(emojiModel); - emojiModel->setParent(proxy); - return proxy; - } else if (completerName == "room") { - auto roomModel = new RoomsModel(true); - auto proxy = new CompletionProxyModel(roomModel); - roomModel->setParent(proxy); - return proxy; - } - return nullptr; -} - void InputBar::send() {