Debian Codegraph @

online-accounts-plugins/lib/module/qml5/ErrorItem.qml

raw
1 /*
2 * Copyright (C) 2015 Canonical Ltd.
3 *
4 * Contact: Alberto Mardegan <[email protected]>
5 *
6 * This program is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 3, as published
8 * by the Free Software Foundation.
9 *
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranties of
12 * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
13 * PURPOSE. See the GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License along
16 * with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 import QtQuick 2.9
20 import Lomiri.Components 1.3
21
22 Item {
23 id: root
24
25 signal retryRequested()
26
27 Column {
28 anchors {
29 verticalCenter: parent.verticalCenter
30 left: parent.left; right: parent.right
31 }
32 spacing: units.gu(2)
33
34 Label {
35 anchors { left: parent.left; right: parent.right }
36 text: i18n.dtr("lomiri-online-accounts", "This service is not available right now. Try again later.")
37 wrapMode: Text.WordWrap
38 horizontalAlignment: Text.AlignHCenter
39 }
40
41 Button {
42 anchors.horizontalCenter: parent.horizontalCenter
43 text: i18n.dtr("lomiri-online-accounts", "Try Again")
44 onClicked: root.retryRequested()
45 }
46 }
47 }