From aa486a5c0ca9b5e886fedd3b12acf0e5238f2ce7 Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Sun, 7 Oct 2018 14:09:47 +0300 Subject: Adjustments for the minimized sidebar --- src/CommunitiesList.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/CommunitiesList.cpp') diff --git a/src/CommunitiesList.cpp b/src/CommunitiesList.cpp index fc762376..60bb0eb5 100644 --- a/src/CommunitiesList.cpp +++ b/src/CommunitiesList.cpp @@ -1,7 +1,8 @@ -#include "CommunitiesList.h" #include "Cache.h" +#include "CommunitiesList.h" #include "Logging.h" #include "MatrixClient.h" +#include "Utils.h" #include @@ -19,7 +20,8 @@ CommunitiesList::CommunitiesList(QWidget *parent) topLayout_->setSpacing(0); topLayout_->setMargin(0); - setFixedWidth(ui::sidebar::CommunitiesSidebarSize); + const auto sideBarSizes = utils::calculateSidebarSizes(QFont{}); + setFixedWidth(sideBarSizes.groups); scrollArea_ = new QScrollArea(this); scrollArea_->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); -- cgit 1.5.1