We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3ffc6d commit 36d233aCopy full SHA for 36d233a
1 file changed
src/ProjectPlayer.qml
@@ -81,6 +81,12 @@ ProjectScene {
81
if(i !== monitors.model.count)
82
monitors.model.remove(i);
83
}
84
+
85
+ onQuestionAsked: (question)=> {
86
+ questionLoader.active = true;
87
+ questionLoader.item.clear();
88
+ questionLoader.item.question = question;
89
+ }
90
91
92
function start() {
@@ -268,4 +274,22 @@ ProjectScene {
268
274
269
275
270
276
277
278
+ Loader {
279
+ id: questionLoader
280
+ anchors.left: contentRect.left
281
+ anchors.right: contentRect.right
282
+ anchors.bottom: contentRect.bottom
283
+ anchors.margins: 9
284
+ active: false
285
286
+ sourceComponent: Question {
287
+ onClosed: {
288
+ loader.answerQuestion(answer);
289
+ questionLoader.active = false;
290
291
292
+ Component.onCompleted: forceActiveFocus()
293
294
271
295
0 commit comments