X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/abbc64cf04a35ab3549d5c516f44c7c5921baa63..6e2b3026c6a496e81642c373796bd39dad33d2a6:/ParametersWindow.cpp?ds=sidebyside diff --git a/ParametersWindow.cpp b/ParametersWindow.cpp index 07f96fa..3fe11ea 100644 --- a/ParametersWindow.cpp +++ b/ParametersWindow.cpp @@ -5,8 +5,7 @@ #include "AbstractBlock.h" ParametersWindow::ParametersWindow(AbstractBlock *_block, Parameters *_params, BlocksToConfigureWidget *btcw, QWidget *parent) : - QWidget(parent) -{ + QWidget(parent) { block = _block; confWidget = btcw; params = _params; @@ -20,6 +19,7 @@ ParametersWindow::ParametersWindow(AbstractBlock *_block, Parameters *_params, B comboBox = new QComboBox; + cout << "block has " <getParameters().size() << " params" << endl; foreach(BlockParameter *param, block->getParameters()){ comboBox->addItem(param->getName()); } @@ -50,8 +50,7 @@ ParametersWindow::ParametersWindow(AbstractBlock *_block, Parameters *_params, B show(); } -void ParametersWindow::updateData() -{ +void ParametersWindow::updateData() { BlockParameter *param = block->getParameters().at(comboBox->currentIndex()); name->setText(param->getName()); value->setText(param->getValue().toString()); @@ -59,8 +58,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());