Index: sources/gui/qml/dialogs/PowerOff.qml =================================================================== diff -u -rf502bc55feb08cd037d9caa12086d30034fe715b -r981e534e5b3174aab7ec47de3b1ead1511dbb6ef --- sources/gui/qml/dialogs/PowerOff.qml (.../PowerOff.qml) (revision f502bc55feb08cd037d9caa12086d30034fe715b) +++ sources/gui/qml/dialogs/PowerOff.qml (.../PowerOff.qml) (revision 981e534e5b3174aab7ec47de3b1ead1511dbb6ef) @@ -26,12 +26,14 @@ */ ModalDialog { id : _root contentItem.objectName : "PowerOffDialog" //SquishQt testability - property alias titleText : _titleText.text - property alias messageText : _messageText.text - property alias confirmText : _confirmTouch.textString - property alias confirmVisible : _confirmTouch.visible - property alias cancelText : _cancelTouch.textString - property alias cancelVisible : _cancelTouch.visible + property string idText : "" + property alias titleText : _titleText.text + property alias messageText : _messageText.text + property alias confirmText : _confirmTouch.textString + property alias confirmVisible : _confirmTouch.visible + property alias cancelText : _cancelTouch.textString + property alias cancelVisible : _cancelTouch.visible + property bool autoClose : true function footerUpdate() { _footer.update() @@ -60,16 +62,28 @@ textString : qsTr("CANCEL") onPressed : { rejected() - close() + if ( autoClose ) close() } }, TouchRect { id : _confirmTouch textString : qsTr("SHUTDOWN") onPressed : { accepted() - close() + if ( autoClose ) close() } } ] } + + Text { id: _idText + text : qsTr("ID") + ":" + _root.idText + anchors { + left : parent.left + bottom : parent.bottom + leftMargin : 5 + bottomMargin: 5 + } + color : notification.visible ? Colors.backgroundDialog : Colors.textMain + font.pixelSize : Fonts.fontPixelDialogText + } }