diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-08-09 23:36:47 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-08-09 23:36:47 +0200 |
commit | 14a0aac74873c27c0454d206848f27b4eec123ae (patch) | |
tree | b379bb81158eb8417d8da9b75b1835c7ec07e84c /src/ChatPage.cpp | |
parent | Try to fix variable timestamp width (diff) | |
download | nheko-14a0aac74873c27c0454d206848f27b4eec123ae.tar.xz |
Add /clear-timeline command
Diffstat (limited to 'src/ChatPage.cpp')
-rw-r--r-- | src/ChatPage.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ChatPage.cpp b/src/ChatPage.cpp index 518be31c..63d13fb9 100644 --- a/src/ChatPage.cpp +++ b/src/ChatPage.cpp @@ -155,6 +155,11 @@ ChatPage::ChatPage(QSharedPointer<UserSettings> userSettings, QWidget *parent) trySync(); }); + connect(text_input_, + &TextInputWidget::clearRoomTimeline, + view_manager_, + &TimelineViewManager::clearCurrentRoomTimeline); + connect( new QShortcut(QKeySequence("Ctrl+Down"), this), &QShortcut::activated, this, [this]() { if (isVisible()) |