Commit 1f0c6cb8 authored by Urs Fleisch's avatar Urs Fleisch
Browse files

Set focus to text field when editing frame.

parent f06046b5
......@@ -77,6 +77,13 @@ public:
m_edit->setPlainText(txt);
}
/**
* Set focus to text field.
*/
void setFocus() {
m_edit->setFocus();
}
/**
* Set label.
*
......@@ -704,6 +711,7 @@ QWidget* TextFieldControl::createWidget(QWidget* parent)
m_edit->setLabel(QCM_translate(getFieldIDString(static_cast<Frame::Field::Id>(m_field.m_id))));
m_edit->setText(m_field.m_value.toString());
m_edit->setFocus();
return m_edit;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment