[ create a new paste ] login | about

Link: http://codepad.org/FoebpDjU    [ raw code | fork ]

Plain Text, pasted on Apr 16:
        delegate: BackgroundItem {
            id: delegate
            height: contentItem.childrenRect.height

            Image {
                id: userImage

                anchors.left: parent.left
                anchors.leftMargin: Theme.paddingMedium

                height: sourceSize.height
                width: sourceSize.width
                source: updateActorProfileImage
            }

            Label {
                id: updateLabel

                height: contentHeight

                anchors.left: userImage.right
                anchors.right: parent.right
                anchors.top: parent.top
                anchors.leftMargin: Theme.paddingMedium
                anchors.rightMargin: Theme.paddingMedium

                text: "<strong>" + updateActorName + "</strong> " + updateActionText
                color: delegate.highlighted ? Theme.highlightColor : Theme.primaryColor
                font.pixelSize: Theme.fontSizeSmall
                wrapMode: Text.WordWrap
            }

            onClicked: console.log (updatesModel.count)
        }


Create a new paste based on this one


Comments: