Allow opening window in a secondary window

This commit is contained in:
Carl Schwan
2021-01-09 13:32:16 +00:00
parent a82b9dc14e
commit f4784bb0a1
6 changed files with 41 additions and 1 deletions

View File

@@ -117,6 +117,12 @@ Kirigami.ApplicationWindow {
pageStack.replace(roomPage, { 'currentRoom': currentRoom, });
}
function openWindow(room) {
const secondayWindow = roomWindow.createObject(applicationWindow(), {currentRoom: room});
secondayWindow.width = root.width - roomList.width;
secondayWindow.show();
}
function connectRoomToSignal(item) {
if (!roomList) {
console.log("Should not happen: no room list page but room page");
@@ -347,4 +353,9 @@ Kirigami.ApplicationWindow {
CreateRoomDialog {}
}
Component {
id: roomWindow
RoomWindow {}
}
}