made the FeedDelegate occupy more space when the title is long

This commit is contained in:
Hauke Schade 2014-12-16 20:59:03 +01:00
parent dc52176539
commit 9a81409556
2 changed files with 4 additions and 5 deletions

View file

@ -30,7 +30,7 @@ Item {
signal pressAndHold
property alias pressed: mouseArea.pressed
height: 80
height: Math.max(80, mainText.height)
width: parent.width
BorderImage {

View file

@ -26,7 +26,7 @@ import "../items"
ListItem {
id: listItem
contentHeight: Theme.itemSizeSmall
contentHeight: Math.max(Theme.itemSizeSmall, titleLabel.height)
width: parent.width
menu: contextMenu
@ -63,15 +63,14 @@ ListItem {
}
Label {
id: titleLabel
text: model.title
anchors.verticalCenter: parent.verticalCenter
anchors.left: icon.visible ? icon.right : parent.left
anchors.margins: Theme.paddingMedium
anchors.right: bubble.left
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
// todo: check for performance issues,
// was StyledText before, which might be better
textFormat: Text.RichText
textFormat: Text.StyledText
font.weight: Font.Bold
font.pixelSize: Theme.fontSizeMedium
color: model.unreadcount > 0 ?