+ } else if (type == "position") {
+ Ui::Positionval_UI *pval = new Ui::Positionval_UI;
+ pval->setupUi(toFillin);
+ int pos = value.toInt();
+ if (d.attribute("id") == "fadein") {
+ pos = pos - m_in;
+ } else if (d.attribute("id") == "fadeout") {
+ // fadeout position starts from clip end
+ pos = m_out - (pos - m_in);
+ }
+ pval->krestrictedline->setText(m_timecode.getTimecodeFromFrames(pos));
+ connect(pval->krestrictedline, SIGNAL(editingFinished()), this, SLOT(collectAllParameters()));
+ pval->label->setText(paramName);
+ valueItems[paramName + "position"] = pval;
+ uiItems.append(pval);