MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / updateConfigPane

Method updateConfigPane

pj_app/src/ui/Scene2DConfigPanel.cpp:132–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132void 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
150void Scene2DConfigPanel::onStylesheetChanged(QString theme) {
151 theme_ = std::move(theme);

Callers

nothing calls this directly

Calls 6

toTopicIdFunction · 0.85
currentIdMethod · 0.80
layerForMethod · 0.80
setConfigWidgetMethod · 0.80
clearMethod · 0.45
createConfigWidgetMethod · 0.45

Tested by

no test coverage detected