Auto-set maximumLineCount for elide in HLabel
This commit is contained in:
@@ -35,7 +35,6 @@ HRectangle {
|
||||
HLabel {
|
||||
id: bannerLabel
|
||||
textFormat: Text.StyledText
|
||||
maximumLineCount: 1
|
||||
elide: Text.ElideRight
|
||||
|
||||
visible:
|
||||
|
@@ -34,7 +34,6 @@ HRectangle {
|
||||
text: displayName
|
||||
font.pixelSize: theme.fontSize.big
|
||||
elide: Text.ElideRight
|
||||
maximumLineCount: 1
|
||||
|
||||
Layout.maximumWidth: Math.max(
|
||||
0,
|
||||
@@ -49,7 +48,6 @@ HRectangle {
|
||||
text: topic
|
||||
font.pixelSize: theme.fontSize.small
|
||||
elide: Text.ElideRight
|
||||
maximumLineCount: 1
|
||||
|
||||
Layout.maximumWidth: Math.max(
|
||||
0,
|
||||
|
@@ -36,7 +36,6 @@ HHighlightRectangle {
|
||||
id: memberName
|
||||
text: memberInfo.displayName || model.userId
|
||||
elide: Text.ElideRight
|
||||
maximumLineCount: 1
|
||||
verticalAlignment: Qt.AlignVCenter
|
||||
|
||||
Layout.maximumWidth: parent.width
|
||||
|
@@ -50,7 +50,6 @@ Row {
|
||||
text: senderInfo.displayName || model.senderId
|
||||
color: Utils.nameColor(avatar.name)
|
||||
elide: Text.ElideRight
|
||||
maximumLineCount: 1
|
||||
horizontalAlignment: isOwn ? Text.AlignRight : Text.AlignLeft
|
||||
|
||||
leftPadding: horizontalPadding
|
||||
|
@@ -34,7 +34,6 @@ HRectangle {
|
||||
text: chatPage.roomInfo.typingText
|
||||
textFormat: Text.StyledText
|
||||
elide: Text.ElideRight
|
||||
maximumLineCount: 1
|
||||
width: typingMembersBar.width - icon.width -
|
||||
parent.spacing - parent.leftPadding - parent.rightPadding
|
||||
}
|
||||
|
Reference in New Issue
Block a user