diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-10-07 14:18:44 +0300 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-10-07 14:18:44 +0300 |
commit | f272d9221ea15bdc737f701f6d45434966e7a225 (patch) | |
tree | cfcfc5ff7eb2cb9ed8de9782dd4dd7a6ea6672ad /src | |
parent | Adjustments for the minimized sidebar (diff) | |
download | nheko-f272d9221ea15bdc737f701f6d45434966e7a225.tar.xz |
Use alignment instead of stretch
Diffstat (limited to 'src')
-rw-r--r-- | src/CommunitiesList.cpp | 2 | ||||
-rw-r--r-- | src/RoomList.cpp | 2 | ||||
-rw-r--r-- | src/Utils.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/CommunitiesList.cpp b/src/CommunitiesList.cpp index 60bb0eb5..6e46741b 100644 --- a/src/CommunitiesList.cpp +++ b/src/CommunitiesList.cpp @@ -1,5 +1,5 @@ -#include "Cache.h" #include "CommunitiesList.h" +#include "Cache.h" #include "Logging.h" #include "MatrixClient.h" #include "Utils.h" diff --git a/src/RoomList.cpp b/src/RoomList.cpp index a2d28c13..c1b080c0 100644 --- a/src/RoomList.cpp +++ b/src/RoomList.cpp @@ -53,9 +53,9 @@ RoomList::RoomList(QWidget *parent) scrollAreaContents_->setObjectName("roomlist_area"); contentsLayout_ = new QVBoxLayout(scrollAreaContents_); + contentsLayout_->setAlignment(Qt::AlignTop); contentsLayout_->setSpacing(0); contentsLayout_->setMargin(0); - contentsLayout_->addStretch(1); scrollArea_->setWidget(scrollAreaContents_); topLayout_->addWidget(scrollArea_); diff --git a/src/Utils.h b/src/Utils.h index c0a78177..2a029943 100644 --- a/src/Utils.h +++ b/src/Utils.h @@ -239,7 +239,7 @@ struct SideBarSizes int small; int normal; int groups; - int collapsePoint; + int collapsePoint; }; SideBarSizes |