Debian Codegraph @

src/app/qml/components/StandardListItem.qml

raw
1 /*
2 * Copyright (C) 2015 Canonical Ltd.
3 *
4 * This file is part of Lomiri Weather App
5 *
6 * Lomiri Weather 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 * Lomiri Weather App is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 import QtQuick 2.12
20 import Lomiri.Components 1.3
21
22 ListItem {
23 id: listItem
24
25 property alias title: listitemlayout.title
26 property alias icon: _icon
27
28 // For autopilot
29 readonly property bool iconVisible: icon.visible
30 readonly property string titleValue: title.text
31
32 height: listitemlayout.height
33 divider.visible: false
34
35 ListItemLayout {
36 id: listitemlayout
37
38 title.text: ""
39
40 Icon {
41 id: _icon
42 height: units.gu(2); width: height
43 name: "go-next"
44 SlotsLayout.position: SlotsLayout.Last
45 }
46 }
47 }