codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
delegate: BackgroundItem { id: delegate height: contentItem.childrenRect.height Image { id: userImage anchors.left: parent.left anchors.leftMargin: Theme.paddingMedium anchors.verticalCenter: parent.verticalCenter smooth: true height: sourceSize.height * 1.5 width: sourceSize.width * 1.5 fillMode: Image.PreserveAspectFit 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 } Label { id: dateLabel anchors.left: userImage.right anchors.right: parent.right anchors.top: updateLabel.bottom anchors.leftMargin: Theme.paddingMedium anchors.rightMargin: Theme.paddingMedium anchors.topMargin: Theme.paddingSmall text: Qt.formatDateTime (updateDate) color: Theme.secondaryColor font.pixelSize: Theme.fontSizeTiny } onClicked: console.log (updatesModel.count) } VerticalScrollDecorator {} }
Private
[
?
]
Run code
Submit