~nik90/ubuntu-weather-app/dev-migrate-new-listitems

« back to all changes in this revision

Viewing changes to app/components/StandardListItem.qml

  • Committer: Nekhelesh Ramananthan
  • Date: 2015-06-21 14:54:05 UTC
  • Revision ID: krnekhelesh@gmail.com-20150621145405-l83qrg50r829u2es
Migrated the individual settings page listitems as well

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
    id: listItem
25
25
 
26
26
    property alias title: _title.text
 
27
    property alias icon: _icon.name
 
28
    property alias showIcon: _icon.visible
27
29
 
28
30
    RowLayout {
29
31
        anchors { left: parent.left; right: parent.right; verticalCenter: parent.verticalCenter; margins: units.gu(2) }
30
 
        height: _progression.height
 
32
        height: _icon.height
31
33
        spacing: units.gu(2)
32
34
        
33
35
        Label {
34
36
            id: _title
35
 
            anchors.verticalCenter: _progression.verticalCenter
 
37
            anchors.verticalCenter: _icon.verticalCenter
36
38
            elide: Text.ElideRight
37
39
            Layout.fillWidth: true
38
40
        }
39
41
        
40
42
        Icon {
41
 
            id: _progression
 
43
            id: _icon
42
44
            height: units.gu(2); width: height
43
45
            name: "go-next"
44
46
        }