[SailfishDevel] 2 Labels in ListView delegate in column
Oleg Linkin
maledictusdemagog at gmail.com
Sun Sep 29 17:21:59 UTC 2013
Hello. I want to have delegate with 2 labels: one above other. Top Label - title and bottom Label - tags. The botton label should be smaller then the top label.
This is my delegate code:
delegate: BackgroundItem
{
width: /listView/.width
Column
{
Label
{
id: /title/
text: entryTitle
elide: Text.ElideRight
color: /parent/.down ? Theme.highlightColor : Theme.primaryColor
font.bold: false
font.family: Theme.fontFamilyHeading
font.pixelSize: Theme.fontSizeMedium
}
Label
{
id: /tags/
text: entryTags
elide: Text.ElideRight
color: /parent/.down ? Theme.highlightColor : Theme.primaryColor
font.italic: true
font.family: Theme.fontFamily
font.pointSize: Theme.fontSizeExtraSmall
}
width: /parent/.width - Theme.paddingSmall
x: Theme.paddingSmall
}
onClicked:
/pageStack/.push (/Qt/.resolvedUrl ("LinkView.qml"),
{ "itemId" : entryId })
}
but there is only one difference between lines: the second one is in italic style.
How I can do it smaller then top label?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20130929/81e90274/attachment.html>
More information about the Devel
mailing list