2018-08-29 22:45:19 +00:00
/ * *
* Copyright ( c ) 2017 - present , Status Research and Development GmbH .
* All rights reserved .
*
* This source code is licensed under the BSD - style license found in the
* LICENSE file in the root directory of this source tree . An additional grant
* of patent rights can be found in the PATENTS file in the same directory .
*
* /
import QtQuick 2.4
import QtQuick . Controls 2.2
import QtQuick . Layouts 1.3
Rectangle {
id: root
width: 384
height: 640
ColumnLayout {
anchors.centerIn: parent
Text {
Layout.alignment: Qt . AlignCenter
2018-10-19 15:50:35 +00:00
text: "Oh, no! Status application just crashed!"
2018-08-29 22:45:19 +00:00
font.bold: true
font.pointSize: 25
}
Text {
Layout.alignment: Qt . AlignCenter
Layout.topMargin: 20
2018-12-08 17:12:31 +00:00
text: "Please report us <b>crash.dmp</b> and <b>Status</b> executable files to allow us fix the issue!"
2018-08-29 22:45:19 +00:00
font.bold: true
font.pointSize: 20
}
RowLayout {
Layout.alignment: Qt . AlignCenter
Layout.topMargin: 40
spacing: 25
Button {
Layout.minimumWidth: 150
text: "Report (highly appreciated)"
onClicked: reportPublisher . submit ( )
}
Button {
text: "Restart and Quit"
onClicked: reportPublisher . restartAndQuit ( )
}
Button {
text: "Just Quit"
onClicked: reportPublisher . quit ( )
}
}
RowLayout {
Layout.alignment: Qt . AlignCenter
Layout.topMargin: 100
TextEdit {
readOnly: true
Layout.maximumWidth: 500
wrapMode: TextEdit . Wrap
selectByMouse: true
font.pointSize: 12
2018-12-08 17:12:31 +00:00
textFormat: TextEdit . RichText
text: "<div>Please upload both <b>crash.dmp</b> and <b>Status</b> executable files from the report directory:<br>" + reportPublisher . resolveDataStoragePath ( ) + "</div>"
2018-08-29 22:45:19 +00:00
}
Button {
text: "View"
onClicked: reportPublisher . showDirectory ( )
}
}
}
}