]> AND Private Git Repository - blast.git/blobdiff - ParametersWindow.cpp
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
modifying pattern methods to throw exceptions
[blast.git] / ParametersWindow.cpp
index 07f96fa53536be8e9accb497cc5a44a43d025765..ee988802aeb465c402bd817a967e94eee93222c1 100644 (file)
@@ -20,6 +20,7 @@ ParametersWindow::ParametersWindow(AbstractBlock *_block, Parameters *_params, B
 
     comboBox = new QComboBox;
 
+    cout << "block has " <<block->getParameters().size() << " params" << endl;
     foreach(BlockParameter *param, block->getParameters()){
       comboBox->addItem(param->getName());
     }
@@ -59,8 +60,7 @@ void ParametersWindow::updateData()
   type->setText(param->getTypeString());
 }
 
-void ParametersWindow::save()
-{
+void ParametersWindow::save() {
   BlockParameter *param = block->getParameters().at(comboBox->currentIndex());
   param->setValue(value->text());