MCPcopy Create free account
hub / github.com/KDE/kdevelop / setBackgroundCentralWidget

Method setBackgroundCentralWidget

kdevplatform/sublime/mainwindow_p.cpp:214–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214void MainWindowPrivate::setBackgroundCentralWidget(QWidget* w)
215{
216 delete bgCentralWidget;
217
218 bgCentralWidget = w;
219
220 if (bgCentralWidget) {
221 auto* l = static_cast<QVBoxLayout*>(centralWidget->layout());
222 l->addWidget(bgCentralWidget, 2);
223 setBackgroundVisible(area->views().isEmpty());
224 }
225}
226
227void MainWindowPrivate::setBackgroundVisible(bool v)
228{

Callers

nothing calls this directly

Calls 3

addWidgetMethod · 0.45
isEmptyMethod · 0.45
viewsMethod · 0.45

Tested by

no test coverage detected