[Utils] fixing rounding issues in time display

Prevent getting strings like "5m60s" when rounding up.
This commit is contained in:
Candice Bentéjac 2023-11-20 11:51:33 +01:00 committed by Fabien Castan
parent 9a09310f07
commit 7abbb50302
4 changed files with 53 additions and 36 deletions

View file

@ -50,12 +50,12 @@ FocusScope {
KeyValue {
key: "Time"
property real time: node.elapsedTime
value: time > 0.0 ? Format.sec2time(time) : "-"
value: time > 0.0 ? Format.sec2timecode(time) : "-"
}
KeyValue {
key: "Cumulated Time"
property real time: node.recursiveElapsedTime
value: time > 0.0 ? Format.sec2time(time) : "-"
value: time > 0.0 ? Format.sec2timecode(time) : "-"
}
}
}