MCPcopy Create free account
hub / github.com/BehaviorTree/Groot / on_buttonAddNode_clicked

Method on_buttonAddNode_clicked

bt_editor/sidepanel_editor.cpp:148–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146
147
148void SidepanelEditor::on_buttonAddNode_clicked()
149{
150 CustomNodeDialog dialog(_tree_nodes_model, QString(), this);
151 if( dialog.exec() == QDialog::Accepted)
152 {
153 auto new_model = dialog.getTreeNodeModel();
154 emit addNewModel( new_model );
155 }
156 updateTreeView();
157}
158
159void SidepanelEditor::onRemoveModel(QString selected_name)
160{

Callers

nothing calls this directly

Calls 1

getTreeNodeModelMethod · 0.80

Tested by

no test coverage detected