Use elided label

This commit is contained in:
Loren Burkholder 2021-07-20 18:27:16 -04:00
parent 75920925dc
commit 92fdda8423

View file

@ -44,9 +44,9 @@ ApplicationWindow {
onClicked: Rooms.currentRoom.openRoomSettings(members.roomId) onClicked: Rooms.currentRoom.openRoomSettings(members.roomId)
} }
Label { ElidedLabel {
font.pixelSize: fontMetrics.font.pixelSize * 2 font.pixelSize: fontMetrics.font.pixelSize * 2
text: members.memberCount + (members.memberCount === 1 ? qsTr(" person in ") : qsTr(" people in ")) + members.roomName fullText: members.memberCount + (members.memberCount === 1 ? qsTr(" person in ") : qsTr(" people in ")) + members.roomName
Layout.alignment: Qt.AlignHCenter Layout.alignment: Qt.AlignHCenter
} }