~pkunal-parmar/ubuntu-calendar-app/ICalImport

« back to all changes in this revision

Viewing changes to TimeLineBackground.qml

  • Committer: Tarmac
  • Author(s): Kunal Parmar
  • Date: 2014-10-10 18:43:24 UTC
  • mfrom: (489.1.4 WeekView-Devider)
  • Revision ID: tarmac-20141010184324-chp20vinvdnxak19
Resolves Bug #1248127. Fixes: https://bugs.launchpad.net/bugs/1248127.

Approved by Mihir Soni, Ubuntu Phone Apps Jenkins Bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
 
33
33
            Label {
34
34
                id: timeLabel
 
35
                width: (parent.width / 7) - units.gu(1)
 
36
                wrapMode: Text.WordWrap
35
37
 
36
38
                text: {
37
 
                    var locale = Qt.locale()
 
39
                    var locale = Qt.locale()                    
38
40
                    return new Date(0, 0, 0, index).toLocaleTimeString
39
41
                            (locale, locale.timeFormat(Locale.NarrowFormat))
40
42
                }
41
43
 
42
44
                anchors {
43
45
                    left: parent.left
44
 
                    leftMargin: units.gu(2)
 
46
                    leftMargin: units.gu(0.5)
45
47
                    verticalCenter: parent.verticalCenter
46
48
                }
47
49