We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7692c15 commit 07bccf9Copy full SHA for 07bccf9
src/ProjectPlayer.qml
@@ -8,7 +8,7 @@ import ScratchCPP.Render
8
import "internal"
9
10
ProjectScene {
11
- property string fileName
+ readonly property string fileName: loader.fileName
12
property int stageWidth: 480
13
property int stageHeight: 360
14
property alias fps: loader.fps
@@ -28,6 +28,10 @@ ProjectScene {
28
stageScale: (stageWidth == 0 || stageHeight == 0) ? 1 : Math.min(width / stageWidth, height / stageHeight)
29
onFileNameChanged: priv.loading = true;
30
31
+ function load(fileName) {
32
+ loader.fileName = fileName;
33
+ }
34
+
35
QtObject {
36
id: priv
37
property bool loading: false
0 commit comments