From 163b0cd284af14c70a239b7878b318bb2827c6e0 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Wed, 13 Sep 2023 01:05:20 +0800 Subject: [PATCH] Indicate NCInputDateField's backend property is private Signed-off-by: Claudio Cambra --- src/gui/filedetails/NCInputDateField.qml | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) 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