5 property alias image: image.source
6 property alias primaryText: primaryText.text
7 property alias details: details.sourceComponent
8 property alias buttons: buttons.sourceComponent
10 width: delegate.ListView.view.width
11 height: buttons.y + buttons.height + 5
36 border { width: 1; color: "#777777" }
50 source: "qrc:/res/images/profile_pic_border.png"
51 border.left: 24; border.top: 24
52 border.right: 24; border.bottom: 24
53 horizontalTileMode: BorderImage.Stretch
54 verticalTileMode: BorderImage.Stretch
59 anchors { left: image.right; right: background.right; top: background.top; margins: 5; leftMargin: 10 }
61 elide: Text.ElideRight
67 anchors { left: primaryText.left; right: primaryText.right; top: primaryText.bottom }
73 anchors { horizontalCenter: parent.horizontalCenter; top: details.bottom }
80 if (delegate.state == 'expanded') {
82 ListView.view.currentIndex = -1
84 delegate.state = 'expanded'
85 ListView.view.currentIndex = index
93 when: delegate.ListView.isCurrentItem
96 height: buttons.item.childrenRect.height
102 when: !delegate.ListView.isCurrentItem
114 // NumberAnimation { properties: "height"; duration: 100 }
115 PropertyAction { target: primaryText; property: "wrapMode"; value: Text.Wrap }
116 PropertyAction { target: primaryText; property: "elide"; value: Text.ElideNone }
117 PropertyAction { target: buttons.item; property: "visible"; value: true }