moment/harmonyqml/components/chat/Root.qml

26 lines
509 B
QML
Raw Normal View History

2019-03-22 14:28:14 +11:00
import QtQuick 2.7
import QtQuick.Controls 2.2
import QtQuick.Layouts 1.4
ColumnLayout {
property var userId: null
property var roomId: null
2019-03-22 14:28:14 +11:00
property var roomInfo:
Backend.models.rooms.get(userId).getWhere("roomId", roomId)
2019-04-15 06:12:07 +10:00
id: chatPage
2019-03-22 14:28:14 +11:00
spacing: 0
onFocusChanged: sendBox.setFocus()
RoomHeader {
id: roomHeader
displayName: roomInfo.displayName
topic: roomInfo.topic
}
MessageList {}
2019-04-15 06:12:07 +10:00
TypingUsersBar {}
SendBox { id: sendBox }
2019-03-22 14:28:14 +11:00
}