Skip to content

Commit

Permalink
Indicate NCInputDateField's backend property is private
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed Sep 12, 2023
1 parent 4f6d963 commit 163b0cd
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions src/gui/filedetails/NCInputDateField.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

0 comments on commit 163b0cd

Please sign in to comment.