From 1c081cf771a59119c785ec1f4416bad077d40ecc Mon Sep 17 00:00:00 2001 From: NamedKitten Date: Mon, 26 Nov 2018 17:01:45 +0000 Subject: [PATCH] [UI] Made hover timestamp formula easier to read. --- src/qml/ControlsBar.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qml/ControlsBar.qml b/src/qml/ControlsBar.qml index b5c5725..8234caf 100644 --- a/src/qml/ControlsBar.qml +++ b/src/qml/ControlsBar.qml @@ -145,7 +145,7 @@ Item { acceptedButtons: Qt.NoButton z: 1 onPositionChanged: { - var a = (mouseAreaProgressBar.mouseX * (progressBar.to / (progressBackground.width))); + var a = (progressBar.to / progressBar.width ) * mouseAreaProgressBar.mouseX hoverProgressLabel.text = utils.createTimestamp(a) } }