Skip to content

Commit 97febd6

Browse files
committed
ProjectPlayer: Add stageRect property
1 parent b97c49f commit 97febd6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ScratchCPPGui/ProjectPlayer.qml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ ProjectScene {
1717
readonly property bool loading: priv.loading
1818
readonly property int downloadedAssets: loader.downloadedAssets
1919
readonly property int assetCount: loader.assetCount
20+
readonly property Rectangle stageRect: contentRect
2021
signal loaded()
2122
signal failedToLoad()
2223

@@ -54,6 +55,7 @@ ProjectScene {
5455
}
5556

5657
Rectangle {
58+
id: contentRect
5759
anchors.left: parent.left
5860
anchors.top: parent.top
5961
width: stageWidth * stageScale

0 commit comments

Comments
 (0)