Merge lp:~doflah/dialer-app/show_duration_hours into lp:dialer-app
Proposed by
Dennis O'Flaherty
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Gustavo Pichorim Boiko | ||||
Approved revision: | 293 | ||||
Merged at revision: | 326 | ||||
Proposed branch: | lp:~doflah/dialer-app/show_duration_hours | ||||
Merge into: | lp:dialer-app | ||||
Diff against target: |
128 lines (+83/-11) 3 files modified
src/qml/LiveCallPage/StopWatch.qml (+4/-11) tests/qml/CMakeLists.txt (+2/-0) tests/qml/tst_StopWatch.qml (+77/-0) |
||||
To merge this branch: | bzr merge lp:~doflah/dialer-app/show_duration_hours | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gustavo Pichorim Boiko (community) | Approve | ||
Review via email: mp+235552@code.launchpad.net |
Commit message
Show hours in the call duration - fixes #1372689
Description of the change
Show hours in the call duration - fixes #1372689
To post a comment you must log in.
27 + if (minutes < 10) minutes = "0" + minutes;
28 + if (seconds < 10) seconds = "0" + seconds;
Can you instead just use pad(minutes, 2) just like it was being used before?
Actually, now that I am looking at the patch, maybe we should create a Date object representing the duration and use Qt.formatTime() to format the display according to the user locale.
Would you mind experimenting with that and see if it is possible?
Thanks for the patch.