Unity 8
60-reporting.qml
1 /*
2  * Copyright (C) 2013,2014 Canonical, Ltd.
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; version 3.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  */
16 
17 import QtQuick 2.4
18 import Ubuntu.Components 1.3
19 import Ubuntu.SystemSettings.Diagnostics 1.0
20 import ".." as LocalComponents
21 
22 LocalComponents.Page {
23  id: reportingPage
24  objectName: "reportingPage"
25 
26  title: i18n.tr("Improving your experience")
27  forwardButtonSourceComponent: forwardButton
28 
29  skipValid: false
30  skip: !diagnostics.reportCrashes // skip the page when the system is configured not to report crashes
31 
32  UbuntuDiagnostics {
33  id: diagnostics
34  Component.onCompleted: reportingPage.skipValid = true;
35  }
36 
37  Column {
38  id: column
39  anchors.fill: content
40  spacing: units.gu(2)
41 
42  Label {
43  anchors.left: parent.left
44  anchors.right: parent.right
45  wrapMode: Text.Wrap
46  text: i18n.tr("Your phone is set up to automatically report errors to Canonical and its partners, the makers of the operating system.")
47  }
48 
49  Label {
50  anchors.left: parent.left
51  anchors.right: parent.right
52  wrapMode: Text.Wrap
53  text: i18n.tr("This can be disabled in <b>System Settings</b> under <b>Security &amp; Privacy</b>")
54  }
55  }
56 
57  Component {
58  id: forwardButton
59  LocalComponents.StackButton {
60  text: i18n.tr("Continue")
61  onClicked: pageStack.next()
62  }
63  }
64 }