Remove binding between RoomListForm and RoomForm and reformat code.
This commit allows user to do a series of operations(via press and hold) on a room without entering the room in RoomForm. Fixes #14.
This commit is contained in:
@@ -31,6 +31,8 @@ Page {
|
||||
Layout.maximumWidth: 360
|
||||
|
||||
listModel: roomListModel
|
||||
|
||||
onEnterRoom: roomForm.currentRoom = currentRoom
|
||||
}
|
||||
|
||||
RoomForm {
|
||||
@@ -38,8 +40,6 @@ Page {
|
||||
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
|
||||
currentRoom: roomListForm.currentRoom
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user