From: Matt Ranostay Date: Tue, 2 Jul 2019 23:06:45 +0000 (-0700) Subject: mediaplayer: qml: add hour digits to time2str function X-Git-Tag: halibut/8.0.0 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=7dc374b5bf79aeb5efb8ca4c6c7dc381ef9cf192;p=apps%2Fmediaplayer.git mediaplayer: qml: add hour digits to time2str function Bug-AGL: SPEC-2595 Change-Id: I6c8b9b9af0a1b900f447551ebde90b57413721d0 Signed-off-by: Matt Ranostay --- diff --git a/app/MediaPlayer.qml b/app/MediaPlayer.qml index 089fcd0..85328a9 100644 --- a/app/MediaPlayer.qml +++ b/app/MediaPlayer.qml @@ -40,7 +40,7 @@ ApplicationWindow { property string status: "stopped" function time2str(value) { - return Qt.formatTime(new Date(value), 'mm:ss') + return Qt.formatTime(new Date(value), (value > 3600000) ? 'hh:mm:ss' : 'mm:ss') } }