[ create a new paste ] login | about

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

Python, pasted on May 13:
        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 {}
    }


Output:
1
2
3
4
  Line 1
    delegate: BackgroundItem {
    ^
IndentationError: unexpected indent


Create a new paste based on this one


Comments: