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?
_______________________________________________
SailfishOS.org Devel mailing list

Reply via email to