comboBox = new QComboBox;
+ cout << "block has " <<block->getParameters().size() << " params" << endl;
foreach(BlockParameter *param, block->getParameters()){
comboBox->addItem(param->getName());
}
type->setText(param->getTypeString());
}
-void ParametersWindow::save()
-{
+void ParametersWindow::save() {
BlockParameter *param = block->getParameters().at(comboBox->currentIndex());
param->setValue(value->text());