Debian Codegraph @

qml/Components/StandardListItem.qml

raw
1 /*
2 * This file is based on work taken from Ubuntu Weather app as on September 2019. Copyright (C) 2019 UBports
3 * Copyright (C) 2019 Joan Cibersheep
4 *
5 *
6 * This App is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 3 as
8 * published by the Free Software Foundation.
9 *
10 *
11 * This App is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21 import QtQuick 2.9
22 import Lomiri.Components 1.3
23
24 ListItem {
25 id: listItem
26
27 property alias title: listitemlayout.title
28 property alias icon: _icon
29
30 // For autopilot
31 readonly property bool iconVisible: icon.visible
32 readonly property string titleValue: title.text
33
34 height: listitemlayout.height + divider.height
35 divider.visible: false
36
37 ListItemLayout {
38 id: listitemlayout
39
40 title.text: ""
41
42 Icon {
43 id: _icon
44 height: units.gu(2); width: height
45 name: "go-next"
46 SlotsLayout.position: SlotsLayout.Last
47 }
48 }
49 }