Truncate text if too big
This commit is contained in:
parent
27b3e95d97
commit
dbb32a3777
2 changed files with 10 additions and 0 deletions
|
|
@ -59,8 +59,10 @@ Item
|
||||||
id: descriptionLabel
|
id: descriptionLabel
|
||||||
text: itemRoot.title
|
text: itemRoot.title
|
||||||
color: ( hover ? colors.textHover : colors.text )
|
color: ( hover ? colors.textHover : colors.text )
|
||||||
|
width: parent.width - descriptionLabel.height + 10 - 2 - 24
|
||||||
|
|
||||||
font: fonts.listItemMed
|
font: fonts.listItemMed
|
||||||
|
elide: Text.ElideRight
|
||||||
|
|
||||||
x: descriptionLabel.height + 10 + 12
|
x: descriptionLabel.height + 10 + 12
|
||||||
y: 5
|
y: 5
|
||||||
|
|
|
||||||
|
|
@ -50,8 +50,12 @@ Item
|
||||||
|
|
||||||
font: fonts.listItemMed
|
font: fonts.listItemMed
|
||||||
|
|
||||||
|
elide: Text.ElideRight
|
||||||
|
|
||||||
x: itemRoot.height + 12
|
x: itemRoot.height + 12
|
||||||
y: 0
|
y: 0
|
||||||
|
|
||||||
|
width: itemRoot.width - itemRoot.height - 26
|
||||||
}
|
}
|
||||||
|
|
||||||
Text
|
Text
|
||||||
|
|
@ -62,6 +66,10 @@ Item
|
||||||
y: userName == "" ? 7 : userNameText.height * 0.8
|
y: userName == "" ? 7 : userNameText.height * 0.8
|
||||||
font: userName == "" ? fonts.listItemBig : fonts.listItemSub
|
font: userName == "" ? fonts.listItemBig : fonts.listItemSub
|
||||||
x: itemRoot.height + 12
|
x: itemRoot.height + 12
|
||||||
|
|
||||||
|
elide: Text.ElideRight
|
||||||
|
|
||||||
|
width: itemRoot.width - itemRoot.height - 26
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle
|
Rectangle
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue