Index: sources/gui/qml/pages/settings/SettingsStack.qml =================================================================== diff -u -r28845c70151c3fb6f1a8e92c82da0232b6ca854a -r5154e66736a0157835b003e7dfba5fcfb2ffcb6c --- sources/gui/qml/pages/settings/SettingsStack.qml (.../SettingsStack.qml) (revision 28845c70151c3fb6f1a8e92c82da0232b6ca854a) +++ sources/gui/qml/pages/settings/SettingsStack.qml (.../SettingsStack.qml) (revision 5154e66736a0157835b003e7dfba5fcfb2ffcb6c) @@ -41,18 +41,19 @@ property bool serviceMode : false enum ItemsIndex { - Information , - VolumeBrightness, - WiFi , - Bluetooth , - DGSettings , - Services , - SetDateTime , - ExportLogs , - RoInput , - Language , - Calibration , - SWUpdate , + Information , + VolumeBrightness , + WiFi , + Bluetooth , + DGSettings , + Services , + SetDateTime , + ExportLogs , + RoInput , + Language , + Calibration , + DeviceRegistration , + SWUpdate , FactoryReset } property var itemsText : [ @@ -67,6 +68,7 @@ qsTr("Water Input Mode" ), // RoInput qsTr("Set Language" ), // Language qsTr("Calibration " ), // Calibration + qsTr("Device Registeration" ), // DeviceRegistration qsTr("Software Update" ), // SWUpdate qsTr("Factory Reset" ), // FactoryReset ] @@ -82,6 +84,7 @@ true , // RoInput false , // Language false , // Calibration + true , // DeviceRegistration false , // SWUpdate false , // FactoryReset ] @@ -97,6 +100,7 @@ true , // RoInput false /* serviceMode phase 1 */ , // Language false /* serviceMode phase 1 */ , // Calibration + true /* serviceMode */ , // DeviceRegistration // FIXME: On the normal setting menu for now for development. false /* serviceMode phase 1 */ , // SWUpdate false /* serviceMode phase 1 */ , // FactoryReset ] @@ -154,6 +158,10 @@ push( _settingsRoInput ) break + case SettingsStack.DeviceRegistration: + push( _settingsDeviceRegistration ) + break + default: console.debug("Unknown Index", vIndex) break @@ -323,6 +331,8 @@ } } + SettingsDeviceRegistration { id: _settingsDeviceRegistration } + UserConfirmation { id: _servicePassword property bool isPassword_Accepted : false property bool isDefaultPasswordSet : (vSettings.servicePass != "")