summary refs log tree commit diff
path: root/src/ChatPage.cc
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-04-28 15:27:12 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-04-28 15:27:12 +0300
commit7621dc0cb028ff15ac2375c31a1dd6fd64b4b94b (patch)
treead22bea3f559aabfe4a6c57ca5bea79b89efe5de /src/ChatPage.cc
parentRemove old/unused code (diff)
downloadnheko-7621dc0cb028ff15ac2375c31a1dd6fd64b4b94b.tar.xz
Fix UI inconsistencies between room list & communities
fixes #204
fixes #255
Diffstat (limited to 'src/ChatPage.cc')
-rw-r--r--src/ChatPage.cc14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/ChatPage.cc b/src/ChatPage.cc

index 8981cb98..ee338c2d 100644 --- a/src/ChatPage.cc +++ b/src/ChatPage.cc
@@ -58,16 +58,8 @@ ChatPage::ChatPage(QSharedPointer<MatrixClient> client, topLayout_->setSpacing(0); topLayout_->setMargin(0); - communitiesSideBar_ = new QWidget(this); - communitiesSideBar_->setFixedWidth(ui::sidebar::CommunitiesSidebarSize); - communitiesSideBarLayout_ = new QVBoxLayout(communitiesSideBar_); - communitiesSideBarLayout_->setSpacing(0); - communitiesSideBarLayout_->setMargin(0); - communitiesList_ = new CommunitiesList(client, this); - communitiesSideBarLayout_->addWidget(communitiesList_); - // communitiesSideBarLayout_->addStretch(1); - topLayout_->addWidget(communitiesSideBar_); + topLayout_->addWidget(communitiesList_); auto splitter = new Splitter(this); splitter->setHandleWidth(0); @@ -806,12 +798,12 @@ ChatPage::setGroupViewState(bool isEnabled) { if (!isEnabled) { communitiesList_->communityChanged("world"); - communitiesSideBar_->hide(); + communitiesList_->hide(); return; } - communitiesSideBar_->show(); + communitiesList_->show(); } void