summaryrefslogtreecommitdiff
path: root/src/components/qt_hmi/qml_model_qt5/hmi_api/UI.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/qt_hmi/qml_model_qt5/hmi_api/UI.qml')
-rw-r--r--src/components/qt_hmi/qml_model_qt5/hmi_api/UI.qml15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/components/qt_hmi/qml_model_qt5/hmi_api/UI.qml b/src/components/qt_hmi/qml_model_qt5/hmi_api/UI.qml
index d89747c3c..659b7842c 100644
--- a/src/components/qt_hmi/qml_model_qt5/hmi_api/UI.qml
+++ b/src/components/qt_hmi/qml_model_qt5/hmi_api/UI.qml
@@ -203,6 +203,7 @@ Item {
"updateMode": Internal.MediaClockUpdateMode.MCU_COUNTUP,
"runningMode": Internal.MediaClockRunningMode.MCR_STOPPED,
"magic": Internal.stringToHmsTime(fieldSubstrings[Common.TextFieldName.mediaClock]),
+ "startTime": Internal.stringToHmsTime(fieldSubstrings[Common.TextFieldName.mediaClock]),
"startTimeForProgress": -1
}
}
@@ -339,7 +340,11 @@ Item {
break
}
newStartTime = Internal.hmsTime(startTime.hours, startTime.minutes, startTime.seconds)
- newEndTime = endTime ? Internal.hmsTime(endTime.hours, endTime.minutes, endTime.seconds) : -1
+ newEndTime = endTime ? Internal.hmsTime(endTime.hours,
+ endTime.minutes,
+ endTime.seconds)
+ : dataContainer.currentApplication.mediaClock.upperTimeLimit
+
newUpdateMode = Internal.MediaClockUpdateMode.MCU_COUNTUP
newRunningMode = Internal.MediaClockRunningMode.MCR_RUNNING
newStartTimeForProgress = Internal.hmsTime(startTime.hours, startTime.minutes, startTime.seconds)
@@ -353,7 +358,7 @@ Item {
break
}
newStartTime = Internal.hmsTime(startTime.hours, startTime.minutes, startTime.seconds)
- newEndTime = endTime ? Internal.hmsTime(endTime.hours, endTime.minutes, endTime.seconds) : -1
+ newEndTime = endTime ? Internal.hmsTime(endTime.hours, endTime.minutes, endTime.seconds) : 0
newUpdateMode = Internal.MediaClockUpdateMode.MCU_COUNTDOWN
newRunningMode = Internal.MediaClockRunningMode.MCR_RUNNING
newStartTimeForProgress = Internal.hmsTime(startTime.hours, startTime.minutes, startTime.seconds)
@@ -372,7 +377,7 @@ Item {
newEndTime = app.mediaClock.endTime
newRunningMode = Internal.MediaClockRunningMode.MCR_STOPPED
newUpdateMode = app.mediaClock.updateMode
- newStartTimeForProgress = app.mediaClock.startTime
+ newStartTimeForProgress = app.mediaClock.startTimeForProgress
resultCode = Common.Result.SUCCESS
break
@@ -387,7 +392,7 @@ Item {
newStartTime = app.mediaClock.startTime
newEndTime = app.mediaClock.endTime
newRunningMode = Internal.MediaClockRunningMode.MCR_RUNNING
- newStartTimeForProgress = app.mediaClock.startTime
+ newStartTimeForProgress = app.mediaClock.startTimeForProgress
newUpdateMode = app.mediaClock.updateMode
resultCode = Common.Result.SUCCESS
break
@@ -631,7 +636,7 @@ Item {
}
}
- function performAudioPassThru (audioPassThruDisplayTexts, timeout, appID) {
+ function performAudioPassThru (appID, audioPassThruDisplayTexts, timeout) {
var displayTextsLog = "";
if (audioPassThruDisplayTexts) {
for (var i = 0; i < audioPassThruDisplayTexts.length; i++) {