Commit c311ab0a authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Reduce flickering in project mode

 * Remove one layer of layout.

Reviewed-by: dt
parent 7ce36831
......@@ -122,19 +122,7 @@ PanelsWidget::PanelsWidget(QWidget *parent) :
m_layout->setColumnMinimumWidth(0, ICON_SIZE + 4);
m_layout->setSpacing(0);
// Add horizontal space to the left of our widget:
QHBoxLayout *hbox = new QHBoxLayout;
hbox->setMargin(0);
hbox->setSpacing(0);
hbox->addWidget(m_root);
hbox->addStretch(10);
// create a widget to hold the scrollarea:
QWidget * scrollArea = new QWidget();
scrollArea->setLayout(hbox);
setWidget(scrollArea);
setWidget(m_root);
setFrameStyle(QFrame::NoFrame);
setWidgetResizable(true);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment