Changeset View
Changeset View
Standalone View
Standalone View
src/contents/ui/main.qml
| Show First 20 Lines • Show All 175 Lines • ▼ Show 20 Lines | Kirigami.ApplicationWindow { | ||||
| } | } | ||||
| function activateRoomInvitePage(room) { | function activateRoomInvitePage(room) { | ||||
| pageStack.push(Qt.resolvedUrl("room-settings/RoomInvitePage.qml"), { | pageStack.push(Qt.resolvedUrl("room-settings/RoomInvitePage.qml"), { | ||||
| room | room | ||||
| }); | }); | ||||
| } | } | ||||
| function activateUserPage(user, room) { | function activateUserPage(user, room, userId) { | ||||
| pageStack.push(Qt.resolvedUrl("qrc:///UserPage.qml"), { | pageStack.push(Qt.resolvedUrl("qrc:///UserPage.qml"), { | ||||
| userId: user.userId, | userId: userId || user.userId, | ||||
| user, | user, | ||||
| room | room | ||||
| }); | }); | ||||
| } | } | ||||
| function switchToMainPage() { | function switchToMainPage() { | ||||
| pageStack.replace([mainPage]) | pageStack.replace([mainPage]) | ||||
| pageStack.currentIndex = 0 | pageStack.currentIndex = 0 | ||||
| ▲ Show 20 Lines • Show All 80 Lines • Show Last 20 Lines | |||||