| 130 | } |
| 131 | |
| 132 | void Scene2DConfigPanel::updateConfigPane() { |
| 133 | config_host_->clear(); |
| 134 | if (dock_ == nullptr) { |
| 135 | return; |
| 136 | } |
| 137 | const auto selected = list_->currentId(); |
| 138 | if (!selected.has_value()) { |
| 139 | return; |
| 140 | } |
| 141 | ISceneLayer* layer = dock_->layerFor(toTopicId(*selected)); |
| 142 | if (layer == nullptr) { |
| 143 | return; |
| 144 | } |
| 145 | if (QWidget* config = layer->createConfigWidget(config_host_)) { |
| 146 | config_host_->setConfigWidget(config); |
| 147 | } |
| 148 | } |
| 149 | |
| 150 | void Scene2DConfigPanel::onStylesheetChanged(QString theme) { |
| 151 | theme_ = std::move(theme); |
nothing calls this directly
no test coverage detected