Commit ea349943 authored by Martin Straka's avatar Martin Straka

Date text fileds are readonly for date selecting

parent 7bc3ffef
......@@ -73,6 +73,13 @@ ScrollableListView {
text: gsVal
placeholderText: gsPlacehold
width: parent.width
/*
* TODO: Wrong focus on text field when editing date or
* close calendar dialogue. Virtual keyboard is
* always activated. Probably is bug in form model.
* Temporary solution is readonly text field for date.
*/
readOnly: actionButton.visible
InputLineMenu {
id: icox
inputTextControl: textField
......
......@@ -91,7 +91,7 @@ QList<Gov::FormField> SzrRobVvuData::allFields(void) const
ff.setKey(FROM_KEY);
ff.setVal(m_userFromDate.isNull() ? QString() : m_userFromDate.toString(GOV_DATE_FORMAT));
ff.setDescr(tr("From"));
ff.setPlaceholder(tr("Enter date (YYYY-MM-DD)"));
ff.setPlaceholder(tr("Select date from"));
ff.setProperties(Gov::FormFieldType::PROP_MANDATORY |
Gov::FormFieldType::PROP_USER_INPUT |
Gov::FormFieldType::PROP_TYPE_DATE);
......@@ -102,7 +102,7 @@ QList<Gov::FormField> SzrRobVvuData::allFields(void) const
ff.setKey(TO_KEY);
ff.setVal(m_userToDate.isNull() ? QString() : m_userToDate.toString(GOV_DATE_FORMAT));
ff.setDescr(tr("To"));
ff.setPlaceholder(tr("Enter date (YYYY-MM-DD)"));
ff.setPlaceholder(tr("Select date to"));
ff.setProperties(Gov::FormFieldType::PROP_MANDATORY |
Gov::FormFieldType::PROP_USER_INPUT |
Gov::FormFieldType::PROP_TYPE_DATE);
......
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