12ce4cdb30
- Application and Engine will be started by __init__.run() independently - Exiting app will disconnect clients - Signals like SIGINT (Ctrl-C) are now handled for proper exit
43 lines
840 B
QML
43 lines
840 B
QML
import QtQuick 2.7
|
|
import "../Base"
|
|
import "Banners"
|
|
import "RoomEventList"
|
|
|
|
HColumnLayout {
|
|
Component.onCompleted: Backend.pdb()
|
|
property string userId: ""
|
|
property string roomId: ""
|
|
|
|
readonly property var roomInfo:
|
|
Backend.models.rooms.get(userId).get(roomId)
|
|
|
|
property bool canLoadPastEvents: true
|
|
|
|
id: chatPage
|
|
onFocusChanged: sendBox.setFocus()
|
|
|
|
RoomHeader {
|
|
displayName: roomInfo.displayName
|
|
topic: roomInfo.topic || ""
|
|
}
|
|
|
|
RoomEventList {}
|
|
|
|
TypingUsersBar {}
|
|
|
|
InviteBanner {
|
|
visible: roomInfo.category === "Invites"
|
|
inviter: roomInfo.inviter
|
|
}
|
|
|
|
SendBox {
|
|
id: sendBox
|
|
visible: roomInfo.category === "Rooms"
|
|
}
|
|
|
|
LeftBanner {
|
|
visible: roomInfo.category === "Left"
|
|
leftEvent: roomInfo.leftEvent
|
|
}
|
|
}
|