28 const QList<QString> contents,
33 : QWidget(parent), _name(std::move(name)), _algProps(algProps), _type(type)
35 auto* layout =
new QHBoxLayout;
36 layout->setSpacing(3);
37 layout->setContentsMargins(0, 0, 0, 0);
39 foreach (QString content, contents)
41 auto* lineEdit =
new QLineEdit(content,
this);
42 layout->addWidget(lineEdit);
46 case QVariant::Double:
47 lineEdit->setValidator(
new QDoubleValidator(
this));
51 lineEdit->setValidator(
new QIntValidator(
this));
61 this->setLayout(layout);
62 this->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);