Commit 900eaf3c authored by Black Hat's avatar Black Hat

Use binding for roomform.

parent 563b397f
......@@ -32,10 +32,6 @@ Page {
Layout.maximumWidth: 360
listModel: roomListModel
onCurrentIndexChanged: {
roomForm.setRoom(roomListModel.roomAt(currentIndex));
}
}
RoomForm {
......@@ -44,8 +40,7 @@ Page {
Layout.fillWidth: true
Layout.fillHeight: true
// currentRoom: roomListForm.currentIndex != -1 ? roomListModel.roomAt(roomListForm.currentIndex) : null
currentRoom: roomListForm.currentIndex != -1 ? roomListModel.roomAt(roomListForm.currentIndex) : null
}
}
}
......@@ -8,11 +8,6 @@ import "qrc:/qml/component"
Item {
property var currentRoom
function setRoom(room) {
console.log("RoomView setting room: "+ room.id);
currentRoom = room;
}
Pane {
anchors.fill: parent
padding: 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment