summaryrefslogtreecommitdiffstats
path: root/src/RoomList.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/RoomList.cc')
-rw-r--r--src/RoomList.cc9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/RoomList.cc b/src/RoomList.cc
index c89e4e6e..8f494895 100644
--- a/src/RoomList.cc
+++ b/src/RoomList.cc
@@ -33,13 +33,6 @@ RoomList::RoomList(QSharedPointer<MatrixClient> client, QWidget *parent)
: QWidget(parent)
, client_(client)
{
- setStyleSheet("QWidget { border: none; }");
-
- QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
- sizePolicy.setHorizontalStretch(0);
- sizePolicy.setVerticalStretch(0);
- setSizePolicy(sizePolicy);
-
topLayout_ = new QVBoxLayout(this);
topLayout_->setSpacing(0);
topLayout_->setMargin(0);
@@ -51,7 +44,7 @@ RoomList::RoomList(QSharedPointer<MatrixClient> client, QWidget *parent)
scrollArea_->setWidgetResizable(true);
scrollArea_->setAlignment(Qt::AlignLeading | Qt::AlignLeft | Qt::AlignVCenter);
- scrollAreaContents_ = new QWidget();
+ scrollAreaContents_ = new QWidget(this);
contentsLayout_ = new QVBoxLayout(scrollAreaContents_);
contentsLayout_->setSpacing(0);