2019-04-14 16:12:07 -04:00
|
|
|
import QtQuick 2.7
|
2019-04-28 15:45:42 -04:00
|
|
|
import QtQuick.Layouts 1.3
|
2019-04-28 15:18:36 -04:00
|
|
|
import "../Base"
|
2019-04-14 16:12:07 -04:00
|
|
|
import "utils.js" as ChatJS
|
|
|
|
|
2019-04-28 15:18:36 -04:00
|
|
|
HGlassRectangle {
|
2019-05-11 15:52:56 -04:00
|
|
|
property var typingMembers: chatPage.roomInfo.typingMembers
|
2019-04-28 14:20:30 -04:00
|
|
|
|
2019-05-11 15:52:56 -04:00
|
|
|
color: HStyle.chat.typingMembers.background
|
2019-04-28 14:20:30 -04:00
|
|
|
|
2019-04-14 16:12:07 -04:00
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.minimumHeight: usersLabel.text ? usersLabel.implicitHeight : 0
|
|
|
|
Layout.maximumHeight: Layout.minimumHeight
|
2019-04-20 17:36:21 -04:00
|
|
|
|
2019-04-28 15:18:36 -04:00
|
|
|
HLabel {
|
2019-04-20 17:45:51 -04:00
|
|
|
id: usersLabel
|
2019-04-14 16:12:07 -04:00
|
|
|
anchors.fill: parent
|
|
|
|
|
2019-05-11 15:52:56 -04:00
|
|
|
text: ChatJS.getTypingMembersText(typingMembers, chatPage.userId)
|
2019-04-14 16:12:07 -04:00
|
|
|
elide: Text.ElideMiddle
|
|
|
|
maximumLineCount: 1
|
|
|
|
}
|
|
|
|
}
|