Index: sources/gui/qml/main.qml =================================================================== diff -u -r76e1360b5d2377d4f6d3310d524a902a04e64ff1 -rf8e37a0cbb537edceebee7a7c5f2676f497d1e26 --- sources/gui/qml/main.qml (.../main.qml) (revision 76e1360b5d2377d4f6d3310d524a902a04e64ff1) +++ sources/gui/qml/main.qml (.../main.qml) (revision f8e37a0cbb537edceebee7a7c5f2676f497d1e26) @@ -286,12 +286,9 @@ disable : _GuiView.manufactSetup || _GuiView.updateSetup hidden : true // it should be hidden by default since the landing screen changed to init and it does not have the main menu until the POST passes. width : Variables.applicationWidth + isMainMenu : true Component.onCompleted : { - _mainMenu.updateModel( [{ "text": qsTr("Treatment"), "visible": true }, - { "text": qsTr("Prescriptions"), "visible": true }, - { "text": qsTr("Settings"), "visible": true }]); - _settingsStack.visible = false _managerStack .visible = false _mainStack .visible = true @@ -314,9 +311,26 @@ anchors.top: parent.top } + SDCProgressItem { id: _sdcProgressItem + // TODO: disable this later. this is only for diagnostic purpose. + onDoubleClicked : { + if ( _GuiView.dryDemoMode ) { + let dryDemoTempID = 99 + let id = vConfirm.id + vConfirm.id = dryDemoTempID + vConfirm.doConfirm( true ) + vConfirm.id = id + } + else { + _diagnosticsDialog.open() + } + } + } + // keyboard should always be before AlarmItem to not to covet it. KeyboardItem { id: _keyboard } + LockDialog { id: _lockDialog } AlarmItem { id: _alarmItem ; z: 996 } PowerItem { id: _powerItem ; z: 997 } ConfirmDialog { id: _confirmDialog ; z: 998 }