Start work on launching a stream from QML and rip out remaining QtWidgets

This commit is contained in:
Cameron Gutman
2018-07-07 16:30:26 -07:00
parent d5cc07f107
commit 60ad95bb7b
11 changed files with 83 additions and 55 deletions

View File

@@ -7,6 +7,7 @@ import ComputerManager 1.0
GridView {
property int computerIndex
property AppModel appModel : createModel()
anchors.fill: parent
anchors.leftMargin: 5
@@ -33,7 +34,7 @@ GridView {
return model
}
model: createModel()
model: appModel
delegate: Item {
width: 200; height: 300;
@@ -64,7 +65,8 @@ GridView {
MouseArea {
anchors.fill: parent
onClicked: {
parent.GridView.view.currentIndex = index
var session = appModel.createSessionForGame(index);
session.exec();
}
}
}