MCPcopy Create free account
hub / github.com/cpvrlab/ImagePlay / addPropertyWidget

Method addPropertyWidget

ImagePlay/src/IPProcessPropertiesWidget.cpp:368–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

366}
367
368void 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected