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

This commit is contained in:
Cameron Gutman committed 2018-08-16 23:29:46 -07:00
1 parent c1b1719914
commit 30f673efe1
4 files changed
+11 -16

No files matched your search

+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)
}
}