Index: sources/gui/qml/pages/settings/SettingsDateTime.qml =================================================================== diff -u -r36c82a88dbd6b4fb71528465684d51c6fbff584f -r6e18f1d24b8cc3d84d26f46f36f73deb34e54371 --- sources/gui/qml/pages/settings/SettingsDateTime.qml (.../SettingsDateTime.qml) (revision 36c82a88dbd6b4fb71528465684d51c6fbff584f) +++ sources/gui/qml/pages/settings/SettingsDateTime.qml (.../SettingsDateTime.qml) (revision 6e18f1d24b8cc3d84d26f46f36f73deb34e54371) @@ -46,7 +46,7 @@ confirmEnabled : isValid notificationText: vDateTime.status onConfirmClicked: { - vDateTime.doConfirm( + vDevice.doDateTime( _year .textInput.text , _month .textInput.text , _day .textInput.text , @@ -55,7 +55,9 @@ _ntpSwitch.checked ) } - onVisibleChanged: refreshDateTime() // it seems entering in the TextInput by keyboard breaks the binding + onVisibleChanged: { // it seems entering in the TextInput by keyboard breaks the binding + refreshDateTime() + } function refreshDateTime() { _year .textInput.text = vDateTime.year @@ -65,8 +67,21 @@ _minutes.textInput.text = vDateTime.minute } + Connections { target: vDevice + // ... WILL BE UPDATE IN LDT-2909 + // send fw date/time after succesfully settings it in shell script + function onDateTimeChanged ( vValue ) { vDateTime.doConfirm( + _year .textInput.text , + _month .textInput.text , + _day .textInput.text , + _hours .textInput.text , + _minutes.textInput.text , + _ntpSwitch.checked ) } + } + Connections { target: vDateTime function onDidRefreshUIFields ( ) { refreshDateTime() } + } contentItem: Column { id: _container