| 366 | } |
| 367 | |
| 368 | void IPProcessPropertiesWidget::addPropertyWidget(QString label, QString description, IPPropertyWidget *widget) |
| 369 | { |
| 370 | QFormLayout* layout = (QFormLayout*) this->layout(); |
| 371 | |
| 372 | layout->addRow(label, widget); |
| 373 | |
| 374 | // add widget to list |
| 375 | _propertyWidgets.append(widget); |
| 376 | |
| 377 | // connect widget events to grid execution |
| 378 | connect(widget, &IPPropertyWidget::changed, _mainWindow, &MainWindow::setParamsHaveChanged); |
| 379 | |
| 380 | QLabel* lblDescription = new QLabel(description); |
| 381 | lblDescription->setWordWrap(true); |
| 382 | lblDescription->setStyleSheet("color: #666; font-size: 10px"); |
| 383 | layout->addRow("", lblDescription); |
| 384 | // layout->addRow(new QLabel("")); // add a little space |
| 385 | } |
| 386 | |
| 387 | /*! |
| 388 | * \brief Iterates over all process property widgets and shows/hides |
nothing calls this directly
no outgoing calls
no test coverage detected