summaryrefslogtreecommitdiff
path: root/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'main.qml')
-rw-r--r--main.qml8
1 files changed, 7 insertions, 1 deletions
diff --git a/main.qml b/main.qml
index a4bb28a..12a0f3d 100644
--- a/main.qml
+++ b/main.qml
@@ -45,7 +45,7 @@ ApplicationWindow {
TableView {
id: songPartTable
- model: song.part_model
+ model: song.segment_model
Layout.fillHeight: true
Layout.fillWidth: true
Layout.alignment: Qt.AlignTop
@@ -89,6 +89,11 @@ ApplicationWindow {
Layout.fillWidth: true
}
Text {
+ id: currentPositionText
+ text: { '--:--' }
+ }
+ Text { text: '/' }
+ Text {
id: durationText
text: { '--:--' }
}
@@ -146,6 +151,7 @@ ApplicationWindow {
running: false
repeat: true
onTriggered: {
+ currentPositionText.text = song.ms_to_time(audioInterface.position)
slider.value = audioInterface.position / audioInterface.duration
// Cool segment