1 files changed, 2 insertions, 4 deletions
diff --git a/src/TimelineView.cc b/src/TimelineView.cc
index 8b255cde..032d1310 100644
--- a/src/TimelineView.cc
+++ b/src/TimelineView.cc
@@ -380,14 +380,12 @@ TimelineView::init()
scrollbar_ = new ScrollBar(scroll_area_);
scroll_area_->setVerticalScrollBar(scrollbar_);
- scroll_widget_ = new QWidget();
+ scroll_widget_ = new QWidget(this);
- scroll_layout_ = new QVBoxLayout();
+ scroll_layout_ = new QVBoxLayout(scroll_widget_);
scroll_layout_->addStretch(1);
scroll_layout_->setSpacing(0);
- scroll_widget_->setLayout(scroll_layout_);
-
scroll_area_->setWidget(scroll_widget_);
top_layout_->addWidget(scroll_area_);
|