6 _parent = qobject_cast<QTableWidget *>(parent);
12 QLineEdit *edit =
new QLineEdit(parent);
14 if( index.column() == 0 ){
15 edit->setReadOnly(
true);
23 QLineEdit *edit = qobject_cast<QLineEdit *>(editor);
24 edit->setText(index.model()->data(index).toString());
29 QLineEdit *edit = qobject_cast<QLineEdit *>(editor);
30 model->setData(index, edit->displayText());
35 value.
push_back(edit->displayText().toStdString());
ParamDelegate(const ParamDelegate &)=default
void setEditorData(QWidget *editor, const QModelIndex &index) const
handles information about marlin processors and their collections needed by MarlinSteerCheck ...
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
std::shared_ptr< StringParameters > getParameters()
Returns the string parameters for this processor.