summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatias Linares <matias.linares@comprandoengrupo.net>2022-07-05 17:37:50 -0300
committerMatias Linares <matias.linares@comprandoengrupo.net>2022-07-05 17:37:50 -0300
commitb0f1f03eaee7a716d2966a206fc33d1dcce49c8e (patch)
treeea797eb77cba0a0e1208529359734be1d959d0e9
parenta9a4830d15f2b57f97c88536276675a8eddf89f0 (diff)
downloadbass-player-b0f1f03eaee7a716d2966a206fc33d1dcce49c8e.tar.gz
Add seek from the slider posible
-rw-r--r--main.qml4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.qml b/main.qml
index 12a0f3d..c7b8a33 100644
--- a/main.qml
+++ b/main.qml
@@ -87,6 +87,10 @@ ApplicationWindow {
to: 1
value: 0
Layout.fillWidth: true
+ onMoved: {
+ var position = audioInterface.duration*slider.value
+ audioInterface.seek(position)
+ }
}
Text {
id: currentPositionText