Allow opening window in a secondary window
This commit is contained in:
11
qml/main.qml
11
qml/main.qml
@@ -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 {}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user