diff --git a/src/gui/filedetails/NCInputDateField.qml b/src/gui/filedetails/NCInputDateField.qml index 9d1e7ce76cce4..180ad74ee483a 100644 --- a/src/gui/filedetails/NCInputDateField.qml +++ b/src/gui/filedetails/NCInputDateField.qml @@ -25,25 +25,24 @@ NCInputTextField { text = backend.dateString; } - property DateFieldBackend backend: DateFieldBackend { - id: backend + readonly property DateFieldBackend _backend: DateFieldBackend { onDateStringChanged: if (!root.activeFocus) root.updateText() } - property alias date: backend.date - property alias dateInMs: backend.dateMsecs - property alias minimumDate: backend.minimumDate - property alias minimumDateMs: backend.minimumDateMsecs - property alias maximumDate: backend.maximumDate - property alias maximumDateMs: backend.maximumDateMsecs + property alias date: _backend.date + property alias dateInMs: _backend.dateMsecs + property alias minimumDate: _backend.minimumDate + property alias minimumDateMs: _backend.minimumDateMsecs + property alias maximumDate: _backend.maximumDate + property alias maximumDateMs: _backend.maximumDateMsecs inputMethodHints: Qt.ImhDate - validInput: backend.validDate - text: backend.dateString - onTextChanged: backend.dateString = text + validInput: _backend.validDate + text: _backend.dateString + onTextChanged: _backend.dateString = text onAccepted: { - backend.dateString = text; + _backend.dateString = text; root.userAcceptedDate(); } } \ No newline at end of file