moment/harmonyqml/components/chat/TypingUsersBar.qml

25 lines
590 B
QML
Raw Normal View History

2019-04-15 06:12:07 +10:00
import QtQuick 2.7
import QtQuick.Controls 2.2
import QtQuick.Layouts 1.4
import "../base" as Base
import "utils.js" as ChatJS
Rectangle {
id: root
Layout.fillWidth: true
Layout.minimumHeight: usersLabel.text ? usersLabel.implicitHeight : 0
Layout.maximumHeight: Layout.minimumHeight
color: "#BBB"
property var typingUsers: chatPage.roomInfo.typingUsers
2019-04-15 06:12:07 +10:00
Base.HLabel {
id: usersLabel
2019-04-15 06:12:07 +10:00
anchors.fill: parent
text: ChatJS.getTypingUsersText(typingUsers, chatPage.userId)
2019-04-15 06:12:07 +10:00
elide: Text.ElideMiddle
maximumLineCount: 1
}
}