Index: sources/gui/qml/pages/post/PostInProgress.qml =================================================================== diff -u -rc8263f48423cf7791f5ef7d46157b9278708d663 -r3508eb862db3d45a89ef17bd63f385c80fb52775 --- sources/gui/qml/pages/post/PostInProgress.qml (.../PostInProgress.qml) (revision c8263f48423cf7791f5ef7d46157b9278708d663) +++ sources/gui/qml/pages/post/PostInProgress.qml (.../PostInProgress.qml) (revision 3508eb862db3d45a89ef17bd63f385c80fb52775) @@ -17,7 +17,10 @@ import QtQuick 2.12 // Project +import Gui.Actions 0.1; +// Project + // Qml imports import "qrc:/globals" import "qrc:/components" @@ -26,6 +29,8 @@ /*! * \brief PostInProgress is the screen * which is shown while the power on self test is in progress. + * Upon any POST failure, the power button must be pressed to + * shut down the system. */ ScreenItem { id: _root @@ -65,6 +70,18 @@ font.pixelSize: Fonts.fontPixelSection } + WaitDone { id: _hdWaitdone + diameter: _hdTestsTitle.height + anchors { + left: _hdTestsTitle.right + leftMargin: diameter + verticalCenter: _hdTestsTitle.verticalCenter + } + visible : true + done : vHDPostFinalResult.result < 2 + failed : vHDPostFinalResult.result === 0 + } + CheckListScrollView { id: _hdListView model: vHDPostSingleResult width: _rectangle.width / 3 @@ -85,6 +102,18 @@ font.pixelSize: Fonts.fontPixelSection } + WaitDone { id: _dgWaitdone + diameter: _dgTestsTitle.height + anchors { + left: _dgTestsTitle.right + leftMargin: diameter + verticalCenter: _dgTestsTitle.verticalCenter + } + visible : true + done : vDGPostFinalResult.result < 2 + failed : vDGPostFinalResult.result === 0 + } + CheckListScrollView { id: _dgListView model: vDGPostSingleResult width: _rectangle.width / 3 @@ -106,6 +135,18 @@ font.pixelSize: Fonts.fontPixelSection } + WaitDone { id: _uiWaitdone + diameter: _uiTestsTitle.height + anchors { + left: _uiTestsTitle.right + leftMargin: diameter + verticalCenter: _uiTestsTitle.verticalCenter + } + visible : true + done : vUIPostSingleResult.finalResult < 2 + failed : vUIPostSingleResult.finalResult === 0 + } + CheckListScrollView { id: _uiListView model: vUIPostSingleResult width: _rectangle.width / 3 @@ -117,4 +158,21 @@ } } } + + // delete if not needed or if HW button will be used instead if tests fail + TouchRect { id : _poweroffButton + width: 150 + height: Variables.logoDiameter + anchors { + top : _rectangle.bottom + horizontalCenter: _rectangle.horizontalCenter + } + visible: vHDPostFinalResult.result === 0 || + vDGPostFinalResult.result === 0 || + vUIPostSingleResult.finalResult === 0 + text.text: qsTr("Shutdown") + onPressed: { + _GuiView.doActionTransmit(GuiActions.ID_PowerOff, GuiActions.NoData) + } + } }