~mefrio-g/ubuntu-clock-app/fix-1272470

« back to all changes in this revision

Viewing changes to timer/TimerPage.qml

  • Committer: Tarmac
  • Author(s): Michal Predotka
  • Date: 2014-01-29 14:08:37 UTC
  • mfrom: (307.1.3 ubuntu-clock-app)
  • Revision ID: tarmac-20140129140837-zwj0jeg3p8t5m5jt
Fixed bug #1272628: Leading zero in time values is distracting. Fixes: https://bugs.launchpad.net/bugs/1272628.

Approved by Ubuntu Phone Apps Jenkins Bot, Nekhelesh Ramananthan.

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
    // Function to print timer label (format mm:ss and hh:mm:ss when hh > 0) at top
77
77
    function intervalToString(minutes, seconds)
78
78
    {
79
 
        return Utils.zeroleft(minutes, 2) + ":" + Utils.zeroleft(seconds, 2);
 
79
        return Utils.zeroleft(minutes, 1) + ":" + Utils.zeroleft(seconds, 2);
80
80
    }
81
81
 
82
82
    function reset() {
213
213
        // Column element to hold the saved presets
214
214
        PresetList {
215
215
            id: listPreset
216
 
            visible: presetModel.count != 0 ? true : false
 
216
            visible: presetModel.count != 0
217
217
            anchors { left: parent.left; right: parent.right; top: analogTimer.bottom; topMargin: listPreset.dynamicTopSpacing }
218
218
            dynamicTopSpacing: timerPage.height - timerPage.header.height - analogTimer.height - analogTimer.anchors.topMargin - headerHeight - dividerHeight;
219
219
        }