| 217 | } |
| 218 | |
| 219 | void 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 | |
| 238 | void CustomNodeDialog::on_pushButtonRemove_pressed() |
| 239 | { |
nothing calls this directly
no outgoing calls
no test coverage detected