Use alignment instead of stretch
This commit is contained in:
parent
aa486a5c0c
commit
f272d9221e
4 changed files with 7 additions and 6 deletions
|
|
@ -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_);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue