Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Datovka projects
mobile Datovka
Commits
ea349943
Commit
ea349943
authored
Sep 25, 2018
by
Martin Straka
Browse files
Date text fileds are readonly for date selecting
parent
7bc3ffef
Changes
2
Hide whitespace changes
Inline
Side-by-side
qml/components/GovFormList.qml
View file @
ea349943
...
...
@@ -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
...
...
src/datovka_shared/gov_services/service/gov_szr_rob_vvu.cpp
View file @
ea349943
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment