| 779 | } |
| 780 | |
| 781 | void Scene3DConfigPanel::showRobotLayerConfig(uint32_t topic_id_value) { |
| 782 | if (bound_dock_ == nullptr) { |
| 783 | return; |
| 784 | } |
| 785 | ObjectTopicId topic_id; |
| 786 | topic_id.id = topic_id_value; |
| 787 | ISceneLayer* layer = bound_dock_->layerFor(topic_id); |
| 788 | if (layer == nullptr) { |
| 789 | return; |
| 790 | } |
| 791 | // Robot layers aren't in the Topics list, so the list selection is unrelated; |
| 792 | // last click wins on config_host_ (the list selection stays as-is). |
| 793 | config_host_->setConfigWidget(layer->createConfigWidget(config_host_)); |
| 794 | } |
| 795 | |
| 796 | bool Scene3DConfigPanel::eventFilter(QObject* watched, QEvent* event) { |
| 797 | if (event->type() == QEvent::MouseButtonPress) { |
nothing calls this directly
no test coverage detected