2019-03-22 14:28:14 +11:00
|
|
|
import QtQuick.Controls 2.2
|
|
|
|
import QtQuick.Layouts 1.4
|
|
|
|
|
|
|
|
RowLayout {
|
|
|
|
anchors.fill: parent
|
|
|
|
spacing: 0
|
|
|
|
|
|
|
|
RoomPane {}
|
|
|
|
|
|
|
|
StackView {
|
2019-03-22 21:24:19 +11:00
|
|
|
function show_page(componentName) {
|
|
|
|
pageStack.replace(componentName + ".qml")
|
|
|
|
}
|
2019-03-22 14:28:14 +11:00
|
|
|
function show_room(room_obj) {
|
|
|
|
pageStack.replace("ChatPage.qml", { room: room_obj })
|
|
|
|
}
|
|
|
|
|
|
|
|
id: "pageStack"
|
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.fillHeight: true
|
|
|
|
//initialItem: HomePage {}
|
|
|
|
initialItem: ChatPage { room: Backend.roomsModel.get(0) }
|
|
|
|
|
|
|
|
onCurrentItemChanged: currentItem.forceActiveFocus()
|
|
|
|
|
|
|
|
// Buggy
|
|
|
|
replaceExit: null
|
|
|
|
popExit: null
|
|
|
|
pushExit: null
|
|
|
|
}
|
|
|
|
}
|