[ create a new paste ] login | about

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

Plain Text, pasted on Dec 24:
        delegate: ListItem {

            height: contentItem.childrenRect.height
            width: newBookmarksView.width

            property alias checked : switchIndicator.checked

            Switch {
                id: switchIndicator

                anchors.left: parent.left
                anchors.verticalCenter: parent.verticalCenter
            }

            Label {
                id: titleLabel

                width: newBookmarksView.width
                anchors.left: switchIndicator.right
                anchors.leftMargin: Theme.paddingMedium
                anchors.right: parent.right
                anchors.rightMargin: Theme.paddingMedium

                elide: Text.ElideRight

                text: title
            }

            Label {

                width: newBookmarksView.width
                anchors.left: switchIndicator.right
                anchors.leftMargin: Theme.paddingMedium
                anchors.right: parent.right
                anchors.rightMargin: Theme.paddingMedium

                anchors.top: titleLabel.bottom

                elide: Text.ElideRight
                font.pixelSize: Theme.fontSizeTiny

                text: url
            }

            onClicked: {
                switchIndicator.checked = switchIndicator.checked ?
                     false :
                     true
            }
        }
    }


Create a new paste based on this one


Comments: