on xenial help sign in
port the reporting page
commit29f1d6c3f24c3a3d38dbca1ad463f57f11d8193b authorLukáš Tinkl <lukas.tinkl@canonical.com> dateFri 26 Jun 2015, 12:25 (11 years ago) parent12ff885
1 file changed+26−12
qml/Wizard/Pages/70-reporting.qml+26−12
qml/Wizard/Pages/70-reporting.qml+26−12
@@ -1,5 +1,5 @@
11/*
2− * Copyright (C) 2013,2014 Canonical, Ltd.
2+ * Copyright (C) 2013-2015 Canonical, Ltd.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
@@ -14,40 +14,54 @@
1414 * along with this program. If not, see <http://www.gnu.org/licenses/>.
1515 */
1616
17−import QtQuick 2.0
18−import Ubuntu.Components 0.1
17+import QtQuick 2.3
18+import Ubuntu.Components 1.2
1919import ".." as LocalComponents
2020
2121LocalComponents.Page {
2222 objectName: "reportingPage"
2323
24− title: i18n.tr("Improving your experience")
24+ title: i18n.tr("Help us improve")
2525 forwardButtonSourceComponent: forwardButton
2626
2727 Column {
2828 id: column
2929 anchors.fill: content
30− spacing: units.gu(2)
30+ spacing: units.gu(3)
31+ anchors.topMargin: units.gu(4)
3132
32− Label {
33− anchors.left: parent.left
34− anchors.right: parent.right
35− wrapMode: Text.Wrap
36− text: i18n.tr("Your phone is set up to automatically report errors to Canonical and its partners, the makers of the operating system.")
33+ LocalComponents.CheckableSetting {
34+ id: reportCheck
35+ objectName: "reportCheck"
36+ showDivider: false
37+ text: i18n.tr("Improve your system performance by sending us crashes and error reports.")
38+ checked: true
3739 }
3840
3941 Label {
4042 anchors.left: parent.left
43+ anchors.leftMargin: reportCheck.labelOffset
4144 anchors.right: parent.right
4245 wrapMode: Text.Wrap
43− text: i18n.tr("This can be disabled in <b>System Settings</b> under <b>Security &amp; Privacy</b>")
46+ text: i18n.tr("Privacy policy")
47+ color: "#dd4814"
48+ font.weight: Font.Light
49+ MouseArea {
50+ anchors.fill: parent
51+ cursorShape: Qt.PointingHandCursor
52+ onClicked: {
53+ // TODO
54+ print("Display privacy policy")
55+ }
56+ }
4457 }
4558 }
4659
4760 Component {
4861 id: forwardButton
4962 LocalComponents.StackButton {
50− text: i18n.tr("Continue")
63+ // TODO save the policy somewhere?
64+ text: i18n.tr("Next")
5165 onClicked: pageStack.next()
5266 }
5367 }