Skip to content

Instantly share code, notes, and snippets.

@mborho
Created August 23, 2012 19:29
Show Gist options
  • Save mborho/3440626 to your computer and use it in GitHub Desktop.
Save mborho/3440626 to your computer and use it in GitHub Desktop.
delegate component com.nokia.extras MoreIndicator
Component {
id: listsDelegate
Rectangle {
width:parent.width
height: childrenRect.height+10
// border.color: "darkgrey" //lightgrey"
color: "black"
Column {
id:rowColumn
width:parent.width-30
anchors.horizontalCenter: parent.horizontalCenter
anchors.top:parent.top
anchors.topMargin: 5
Text {
text: title
font.pixelSize: 26
wrapMode: Text.WordWrap
width:parent.width
horizontalAlignment: (updated) ? Text.AlignLeft : Text.AlignHCenter
color:"white"
}
Text {
text: (updated) ? formatDate(updated) : ''
font.pixelSize: 16
width:parent.width
color:"white"
}
}
MoreIndicator {
id: indicator
objectName: "indicatorObject"
// anchors.verticalCenter: parent.verticalCenter
anchors.right: parent.right
anchors.top: parent.top
anchors.topMargin: 15
visible: (updated) ? true :false
}
MouseArea {
anchors.fill: rowColumn
onClicked: (!updated) ? loadNext(id) : listClicked(title, id)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment