Index: sources/gui/qml/components/HeaderBar.qml =================================================================== diff -u -r934354462a353ff5e7fc2ddfe6f3a8f0121a8f3f -r6bff7fae4c7b28a493b5824598c669fa8ab920b3 --- sources/gui/qml/components/HeaderBar.qml (.../HeaderBar.qml) (revision 934354462a353ff5e7fc2ddfe6f3a8f0121a8f3f) +++ sources/gui/qml/components/HeaderBar.qml (.../HeaderBar.qml) (revision 6bff7fae4c7b28a493b5824598c669fa8ab920b3) @@ -8,6 +8,7 @@ property alias menuHidden : _headerMenu.hidden property alias headerMenuIndex : _headerMenu.index property alias titleText : _title.text + property alias loggedUser : _loggedInUser.text width : Variables.applicationWidth height : Variables.headerHeight @@ -37,12 +38,21 @@ } } + Text { id: _loggedInUser + color : Colors.textMain + anchors.top : parent.top + anchors.horizontalCenter: parent.horizontalCenter + horizontalAlignment : Text.AlignHCenter + verticalAlignment : Text.AlignVCenter + font.pixelSize : 18 + } + Text { id: _title color : Colors.textMain anchors.centerIn : parent horizontalAlignment : Text.AlignHCenter verticalAlignment : Text.AlignVCenter - font.pixelSize : 40 + font.pixelSize : 35 } Item { id: _dateTimeItem Index: sources/gui/qml/pages/settings/SettingsServicePassword.qml =================================================================== diff -u -r88a09dc4b26cfdd5fd111d20adfb9cb60697186c -r6bff7fae4c7b28a493b5824598c669fa8ab920b3 --- sources/gui/qml/pages/settings/SettingsServicePassword.qml (.../SettingsServicePassword.qml) (revision 88a09dc4b26cfdd5fd111d20adfb9cb60697186c) +++ sources/gui/qml/pages/settings/SettingsServicePassword.qml (.../SettingsServicePassword.qml) (revision 6bff7fae4c7b28a493b5824598c669fa8ab920b3) @@ -52,6 +52,7 @@ clearPasswords() // go back to the settings home/menu screen + _headerBar.titleText = settingsTitle page(_settingsHome) // in case of debugging that the HD is in service mode already check and call the gotoServiceMode Index: sources/gui/qml/pages/settings/SettingsStack.qml =================================================================== diff -u -r934354462a353ff5e7fc2ddfe6f3a8f0121a8f3f -r6bff7fae4c7b28a493b5824598c669fa8ab920b3 --- sources/gui/qml/pages/settings/SettingsStack.qml (.../SettingsStack.qml) (revision 934354462a353ff5e7fc2ddfe6f3a8f0121a8f3f) +++ sources/gui/qml/pages/settings/SettingsStack.qml (.../SettingsStack.qml) (revision 6bff7fae4c7b28a493b5824598c669fa8ab920b3) @@ -71,8 +71,7 @@ readonly property bool visibleInstitutionalRecord : true readonly property bool visibleLocalization : true // loggedIn TODO: - readonly property string settingsTitle : _GuiView.manufactSetup ? qsTr("Manufacturing Setup") : serviceMode - ? qsTr("Service") : _GuiView.updateSetup + readonly property string settingsTitle : _GuiView.manufactSetup ? qsTr("Manufacturing Setup") : _GuiView.updateSetup ? qsTr("Software Update") : qsTr("Device Settings") enum ItemsIndex { @@ -156,6 +155,9 @@ visibleInstitutionalRecord , // Institutional Record ] + // TODO: SRS 405/406 Test Mode instead add Q_PROPERTY to monitor state??? + onServiceModeChanged: _headerBar.loggedUser = serviceMode ? "[Service]" : "" + SettingsHome { id : _settingsHome backVisible : false //TODO on graceful shutdown, the applicaiton quit shall be used for any applicaiton termination @@ -315,12 +317,8 @@ function onManufactModeChanged( vPass ) { if ( _GuiView.manufactMode ) { vSettings.checkServicePasswordSet() - stackView.initialItem = _servicePassword + push(_servicePassword) } - else { - stackView.initialItem = _settingsHome - } - push(stackView.initialItem) //DEBUG console.log (" 1 ---------- ", _GuiView.manufactMode, _GuiView.manufactSetup, vPass, stackView.initialItem, stackView.currentItem, stackView.depth) if ( _GuiView.manufactSetup ) { @@ -331,7 +329,6 @@ if ( _GuiView.UpdateMode ) { stackView.initialItem = _settingsHome } - push(stackView.initialItem) //DEBUG console.log (" 1 ---------- ", _GuiView.manufactMode, _GuiView.manufactSetup, vPass, stackView.initialItem, stackView.currentItem, stackView.depth) if ( _GuiView.updateSetup ) {