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

Method on_pushButtonAdd_pressed

bt_editor/custom_node_dialog.cpp:219–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219void CustomNodeDialog::on_pushButtonAdd_pressed()
220{
221 int row = ui->tableWidget->rowCount();
222 ui->tableWidget->setRowCount(row+1);
223
224 ui->tableWidget->setItem(row,0, new QTableWidgetItem( "key_name" ));
225 QComboBox* combo_direction = new QComboBox;
226
227 combo_direction->addItem("Input");
228 combo_direction->addItem("Output");
229 combo_direction->addItem("In/Out");
230
231 ui->tableWidget->setCellWidget(row, 1, combo_direction);
232 ui->tableWidget->setItem(row,2, new QTableWidgetItem());
233 ui->tableWidget->setItem(row,3, new QTableWidgetItem());
234
235 checkValid();
236}
237
238void CustomNodeDialog::on_pushButtonRemove_pressed()
239{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected