summaryrefslogtreecommitdiff
path: root/src/components/qt_hmi/qml_model_qt5/popups/TTSPopUp.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/qt_hmi/qml_model_qt5/popups/TTSPopUp.qml')
-rw-r--r--src/components/qt_hmi/qml_model_qt5/popups/TTSPopUp.qml8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/components/qt_hmi/qml_model_qt5/popups/TTSPopUp.qml b/src/components/qt_hmi/qml_model_qt5/popups/TTSPopUp.qml
index 33f82013b..d16015ec5 100644
--- a/src/components/qt_hmi/qml_model_qt5/popups/TTSPopUp.qml
+++ b/src/components/qt_hmi/qml_model_qt5/popups/TTSPopUp.qml
@@ -42,6 +42,7 @@ PopUp {
width: Constants.ttsPopUpWidth
padding: Constants.ttsPopUpPadding
property var async
+ property string helpPromptstr
ScrollView {
anchors.fill: parent
@@ -50,6 +51,7 @@ PopUp {
anchors.fill: parent
color: Constants.popUpBorderColor
font.pixelSize: Constants.ttsFontSize
+ text:""
}
}
@@ -63,12 +65,16 @@ PopUp {
Timer {
id: ttsPerformInteractionTimer
interval: Constants.ttsSpeakTime
- onTriggered: activate(message)
+ onTriggered:
+ if(interactionPopup.performInteractionIsActiveNow)
+ activate(message)
property var message: undefined
}
]
function performInteraction(helpPrompt, initialPrompt, timeoutPrompt, timeout) {
+ console.debug("Activate TTS popup:", "message");
+ helpPromptstr = helpPrompt
activate(initialPrompt);
if (timeout * 2 - Constants.ttsSpeakTime > 0) {
ttsPerformInteractionTimer.message = timeoutPrompt;