~ubuntu-clock-dev/ubuntu-clock-app/reboot-packaging

« back to all changes in this revision

Viewing changes to app/worldclock/UserWorldCityList.qml

  • Committer: Nekhelesh Ramananthan
  • Date: 2014-07-26 09:34:15 UTC
  • mto: (37.1.1 reboot)
  • mto: This revision was merged to the branch mainline in revision 37.
  • Revision ID: krnekhelesh@gmail.com-20140726093415-67r3x357o0fnq08n
Initial working version

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
        hours = Math.floor(time / 60)
34
34
        return [hours, minutes]
35
35
    }
36
 
    
 
36
 
37
37
    anchors.top: locationRow.bottom
38
38
    anchors.topMargin: units.gu(4)
39
39
    width: parent.width
159
159
                    var timediff = worldCityColumn.getTimeDiff(Math.abs(model.timeTo))
160
160
                    var minute = timediff[1]
161
161
                    var hour = timediff[0]
162
 
                    
 
162
 
163
163
                    if(hour > 0 &&  minute > 0) {
164
164
                        return ("%1\n%2hr%3min %4")
165
165
                        .arg(day)