Unity 8
80-finished.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 ".." as LocalComponents
20 
21 LocalComponents.Page {
22  objectName: "finishedPage"
23 
24  title: i18n.tr("All done")
25  forwardButtonSourceComponent: forwardButton
26  hasBackButton: false
27 
28  Column {
29  id: column
30  anchors.fill: content
31  spacing: units.gu(1)
32 
33  Label {
34  anchors.left: parent.left
35  anchors.right: parent.right
36  wrapMode: Text.Wrap
37  fontSize: "large"
38  font.bold: true
39  text: i18n.tr("Nice work!")
40  }
41 
42  Label {
43  anchors.left: parent.left
44  anchors.right: parent.right
45  wrapMode: Text.Wrap
46  text: i18n.tr("Your phone is now ready to use.")
47  }
48  }
49 
50  Component {
51  id: forwardButton
52  LocalComponents.StackButton {
53  text: i18n.tr("Finish")
54  onClicked: root.quitWizard()
55  }
56  }
57 }