File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,12 @@ ProjectScene {
81
81
if (i !== monitors .model .count )
82
82
monitors .model .remove (i);
83
83
}
84
+
85
+ onQuestionAsked : (question )=> {
86
+ questionLoader .active = true ;
87
+ questionLoader .item .clear ();
88
+ questionLoader .item .question = question;
89
+ }
84
90
}
85
91
86
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
}
You can’t perform that action at this time.
0 commit comments