on xenial help sign in
coding style
8e91eb7Andrea Cimitan
Shell.qml+1−2
@@ -126,8 +126,7 @@ FocusScope {
126 if (shell.width / shell.height <= testImage.sourceSize.width / testImage.sourceSize.height) {
126 if (shell.width / shell.height <= testImage.sourceSize.width / testImage.sourceSize.height) {
127 backgroundImage.sourceSize.width = 0
127 backgroundImage.sourceSize.width = 0
128 backgroundImage.sourceSize.height = Qt.binding(function() { return shell.height })
128 backgroundImage.sourceSize.height = Qt.binding(function() { return shell.height })
129− }
130− else {
129+ } else {
131 backgroundImage.sourceSize.height = 0
130 backgroundImage.sourceSize.height = 0
132 backgroundImage.sourceSize.width = Qt.binding(function() { return shell.width })
131 backgroundImage.sourceSize.width = Qt.binding(function() { return shell.width })
133 }
132 }