[sailfish] Update feed view after adding a note

Closes #138
This commit is contained in:
Michael Käufl 2014-11-11 15:00:11 +01:00
parent 664ee6cabd
commit 705c6a0ebf

View file

@ -112,7 +112,9 @@ ListItem {
}
Label {
width: parent.width
text: qsTr("Note: %1").arg(model.note !== undefined ? model.note : "")
text: model.note === undefined || model.note === "" ?
"" :
qsTr("Note: %1").arg(model.note)
color: model.unread > 0 ?
(listItem.highlighted ? Theme.highlightColor : Theme.primaryColor) :
(listItem.highlighted ? Theme.secondaryHighlightColor : Theme.secondaryColor)
@ -123,7 +125,7 @@ ListItem {
font.weight: Font.Light
font.italic: true
font.pixelSize: Theme.fontSizeExtraSmall
visible: settings.showNote && model.note !== undefined && model.note !== ""
visible: settings.showNote && text !== ""
}
Grid {