Debian Codegraph @

system-settings-plugin/NoAccountsPage.qml

raw
1 /*
2 * Copyright (C) 2013-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 Flickable {
23 id: root
24
25 property var accountsModel
26 contentHeight: contentItem.childrenRect.height
27 boundsBehavior: Flickable.StopAtBounds
28
29 Column {
30 anchors.left: parent.left
31 anchors.right: parent.right
32
33 ListItem {
34 SlotsLayout {
35 mainSlot: Label {
36 text: i18n.dtr(domain, "No accounts")
37 color: theme.palette.normal.backgroundText
38 fontSize: "large"
39 anchors.centerIn: parent
40 }
41 }
42 divider.visible: false
43 }
44
45 AddAccountLabel {}
46
47 ListItem {
48 ListItemLayout {
49 title.text: i18n.dtr(domain, "Add account")
50 }
51 }
52
53 ProviderPluginList {}
54 }
55 }