Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import QtQuick 1.1
- import org.kde.plasma.components 0.1 as PlasmaComponents
- Item
- {
- id: root
- property QtObject documentController
- //property Item docRootItem
- Rectangle {
- width: 50; height: 200
- ListModel{
- id:testModel
- ListElement {
- name: "KingFisher"
- Brand: "UB group"
- }
- ListElement {
- name: "Haywords 5000"
- brand: "Haywords"
- }
- ListElement {
- name: "Foster"
- brand: "Aussie"
- }
- }
- Component {
- id: relationDelegate
- Rectangle {
- width: 180; height: 50
- color: "lightsteelblue"; radius: 5
- }
- }
- ListView {
- anchors.fill: parent
- height: width
- width: parent.width
- model: testModel
- delegate: Text { text: name }
- highlight: relationDelegate
- highlightFollowsCurrentItem: true
- focus: true
- //highlight: Rectangle { color: "lightsteelblue"; radius: 5}
- }
- }
Add Comment
Please, Sign In to add comment