@@ -121,12 +121,12 @@ FocusScope {
121 function updateImage() {
121 function updateImage() {
122 if (testImage.status == Image.Ready) {
122 if (testImage.status == Image.Ready) {
123 if (shell.width / shell.height <= testImage.sourceSize.width / testImage.sourceSize.height) {
123 if (shell.width / shell.height <= testImage.sourceSize.width / testImage.sourceSize.height) {
124− backgroundImage.sourceSize = undefined
124+ backgroundImage.sourceSize.width = 0
125− backgroundImage.sourceSize.height = shell.height
125+ backgroundImage.sourceSize.height = Qt.binding(function() { return shell.height })
128− backgroundImage.sourceSize = undefined
128+ backgroundImage.sourceSize.height = 0
129− backgroundImage.sourceSize.width = shell.width
129+ backgroundImage.sourceSize.width = Qt.binding(function() { return shell.width })
132 shell.background = testImage.source
132 shell.background = testImage.source