2019-04-15 06:12:07 +10:00
|
|
|
import QtQuick 2.7
|
|
|
|
import QtQuick.Controls 2.2
|
|
|
|
import QtQuick.Layouts 1.4
|
2019-04-29 02:45:12 +10:00
|
|
|
import "../Base" as Base
|
2019-04-15 06:12:07 +10:00
|
|
|
import "utils.js" as ChatJS
|
|
|
|
|
2019-04-29 04:20:30 +10:00
|
|
|
Base.HGlassRectangle {
|
|
|
|
property var typingUsers: chatPage.roomInfo.typingUsers
|
|
|
|
|
|
|
|
color: Base.HStyle.chat.typingUsers.background
|
|
|
|
|
2019-04-15 06:12:07 +10:00
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.minimumHeight: usersLabel.text ? usersLabel.implicitHeight : 0
|
|
|
|
Layout.maximumHeight: Layout.minimumHeight
|
2019-04-21 07:36:21 +10:00
|
|
|
|
2019-04-15 06:12:07 +10:00
|
|
|
Base.HLabel {
|
2019-04-21 07:45:51 +10:00
|
|
|
id: usersLabel
|
2019-04-15 06:12:07 +10:00
|
|
|
anchors.fill: parent
|
|
|
|
|
2019-04-29 04:20:30 +10:00
|
|
|
text: ChatJS.getTypingUsersText(typingUsers, chatPage.userId)
|
2019-04-15 06:12:07 +10:00
|
|
|
elide: Text.ElideMiddle
|
|
|
|
maximumLineCount: 1
|
|
|
|
}
|
|
|
|
}
|