1BugReportWindow < MainWindow
2 !text: tr('Report Bug')
3 size: 280 250
4 @onEscape: self:hide()
5
6 Label
7 id: bugLabel
8 !text: tr('Please use this dialog to only report bugs. Do not report rule violations here!')
9 text-wrap: true
10 text-auto-resize: true
11 anchors.top: parent.top
12 anchors.left: parent.left
13 anchors.right: parent.right
14
15 MultilineTextEdit
16 id: bugTextEdit
17 text-wrap: true
18 anchors.top: bugLabel.bottom
19 anchors.left: parent.left
20 anchors.right: parent.right
21 anchors.bottom: sendButton.top
22 margin-top: 4
23 margin-bottom: 8
24
25 Button
26 id: sendButton
27 !text: tr('Send')
28 anchors.bottom: cancelButton.bottom
29 anchors.right: cancelButton.left
30 margin-right: 10
31 width: 80
32 &onClick: doReport
33
34 Button
35 id: cancelButton
36 !text: tr('Cancel')
37 anchors.bottom: parent.bottom
38 anchors.right: parent.right
39 width: 80
40 @onClick: self:getParent():hide()
41