~nik90/podbird/devel-branch-sync-4

« back to all changes in this revision

Viewing changes to app/components/SingleValueListItem.qml

  • Committer: Michael Sheldon
  • Author(s): Nekhelesh Ramananthan
  • Date: 2016-03-28 21:30:10 UTC
  • mfrom: (149.1.28 uc-1.3-migrate)
  • Revision ID: michael.sheldon@canonical.com-20160328213010-nnzh3h4ofx0sbfhm
Migrate to Ubuntu.Components 1.3, framework 15.04.3, QtMultimedia 5.4, and new PageHeaders and remove workarounds for SDK bugs which have now been fixed

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright 2015 Podbird Team
 
2
 * Copyright 2015-2016 Podbird Team
3
3
 *
4
4
 * This file is part of Podbird.
5
5
 *
17
17
 */
18
18
 
19
19
import QtQuick 2.4
20
 
import QtQuick.Layouts 1.1
21
 
import Ubuntu.Components 1.2
 
20
import Ubuntu.Components 1.3
22
21
 
23
22
ListItem {
24
23
    id: customListItem
25
24
 
26
 
    property alias text: _title.text
 
25
    property alias title: customItemLayout.title
27
26
    property alias value: _value.text
28
27
 
29
 
    RowLayout {
30
 
        spacing: units.gu(1)
31
 
        anchors { left: parent.left; right: parent.right; verticalCenter: parent.verticalCenter; margins: units.gu(2) }
 
28
    ListItemLayout {
 
29
        id: customItemLayout
32
30
 
33
 
        Label {
34
 
            id: _title
35
 
            Layout.fillWidth: true
36
 
        }
 
31
        title.text: " "
 
32
        title.color: podbird.appTheme.baseText
37
33
 
38
34
        Label {
39
35
            id: _value
40
 
            elide: Text.ElideMiddle
41
 
            horizontalAlignment: Text.AlignRight
42
 
            Layout.maximumWidth: parent.width - _title.implicitWidth - _progression.width - units.gu(2)
 
36
            color: podbird.appTheme.baseText
 
37
            SlotsLayout.position: SlotsLayout.Trailing;
43
38
        }
44
39
 
45
 
        Icon {
46
 
            id: _progression
47
 
            name: "go-next"
48
 
            width: units.gu(2)
49
 
            height: width
50
 
        }
 
40
        ProgressionSlot {}
51
41
    }
52
42
}