Create Qt components with all parameters specified otherwise it will be instantiated with default properties

This commit is contained in:
Cameron Gutman
2018-08-16 23:29:46 -07:00
parent c1b1719914
commit 30f673efe1
4 changed files with 11 additions and 16 deletions
+1 -3
View File
@@ -33,9 +33,7 @@ Item {
// If we're supposed to launch another game after this, do so now
if (error === undefined && nextSession !== null) {
var component = Qt.createComponent("StreamSegue.qml")
var segue = component.createObject(stackView)
segue.appName = nextAppName
segue.session = nextSession
var segue = component.createObject(stackView, {"appName": nextAppName, "session": nextSession})
stackView.push(segue)
}
}