forked from qt-creator/qt-creator
Reduce flickering in project mode
* Remove one layer of layout. Reviewed-by: dt
This commit is contained in:
@@ -122,19 +122,7 @@ PanelsWidget::PanelsWidget(QWidget *parent) :
|
|||||||
m_layout->setColumnMinimumWidth(0, ICON_SIZE + 4);
|
m_layout->setColumnMinimumWidth(0, ICON_SIZE + 4);
|
||||||
m_layout->setSpacing(0);
|
m_layout->setSpacing(0);
|
||||||
|
|
||||||
// Add horizontal space to the left of our widget:
|
setWidget(m_root);
|
||||||
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);
|
|
||||||
setFrameStyle(QFrame::NoFrame);
|
setFrameStyle(QFrame::NoFrame);
|
||||||
setWidgetResizable(true);
|
setWidgetResizable(true);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user