diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-07-01 22:57:14 +0300 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-07-01 22:57:14 +0300 |
commit | 4073d6104537ce44c353f2222c32604177e3dbed (patch) | |
tree | f7e6fbdd000638ac9209752bb70b496173c760d2 /src/ChatPage.cc | |
parent | Mark encrypted messages with a lock icon (diff) | |
download | nheko-4073d6104537ce44c353f2222c32604177e3dbed.tar.xz |
Add shortcuts for chat-only & Room List-only views
Ctrl-O -> Chat Ctrl-L -> Room list
Diffstat (limited to 'src/ChatPage.cc')
-rw-r--r-- | src/ChatPage.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ChatPage.cc b/src/ChatPage.cc index df1ab172..fdd4e910 100644 --- a/src/ChatPage.cc +++ b/src/ChatPage.cc @@ -183,6 +183,8 @@ ChatPage::ChatPage(QSharedPointer<UserSettings> userSettings, QWidget *parent) emit showOverlayProgressBar(); }); + connect(splitter, &Splitter::hiddenSidebar, top_bar_, &TopRoomBar::enableBackButton); + connect(top_bar_, &TopRoomBar::showSidebar, splitter, &Splitter::showSidebar); connect(top_bar_, &TopRoomBar::inviteUsers, this, [this](QStringList users) { const auto room_id = current_room_.toStdString(); @@ -223,6 +225,7 @@ ChatPage::ChatPage(QSharedPointer<UserSettings> userSettings, QWidget *parent) }); connect(room_list_, &RoomList::roomChanged, text_input_, &TextInputWidget::stopTyping); connect(room_list_, &RoomList::roomChanged, this, &ChatPage::changeTopRoomInfo); + connect(room_list_, &RoomList::roomChanged, splitter, &Splitter::showChatView); connect(room_list_, &RoomList::roomChanged, text_input_, &TextInputWidget::focusLineEdit); connect( room_list_, &RoomList::roomChanged, view_manager_, &TimelineViewManager::setHistoryView); |