| 212 | } |
| 213 | |
| 214 | void 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 | |
| 227 | void MainWindowPrivate::setBackgroundVisible(bool v) |
| 228 | { |