Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

sublime: have background widget only give needed size to message area

parent 4b7afd4e
......@@ -284,8 +284,8 @@ void MainWindowPrivate::showRightDock(bool b)
void MainWindowPrivate::setBackgroundCentralWidget(QWidget* w)
{
delete bgCentralWidget;
QLayout* l=m_mainWindow->centralWidget()->layout();
l->addWidget(w);
auto* l = static_cast<QVBoxLayout*>(centralWidget->layout());
l->addWidget(w, 2);
bgCentralWidget=w;
setBackgroundVisible(area->views().isEmpty());
}
......
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