better sidebar

This commit is contained in:
Jeena 2015-01-18 23:45:44 +01:00
parent 48d2646545
commit b24d2bef07
7 changed files with 113 additions and 36 deletions

39
PostListItem.qml Normal file
View file

@ -0,0 +1,39 @@
import QtQuick 2.0
Item {
property ListView listView
height: column.height
Rectangle {
color: "white"
anchors.margins: 10
anchors.fill: parent
Column {
id: column
Text {
text: "[" + date.toLocaleString(null, "hh:mm:ss") + "] " + feedTitle
font.pointSize: 9
color: "gray"
wrapMode: Text.Wrap
}
Text {
text: title
font.pointSize: 12
wrapMode: Text.Wrap
}
Text {
text: excerpt
font.pointSize: 9
color: "gray"
wrapMode: Text.Wrap
}
}
}
MouseArea {
anchors.fill: parent
onClicked: {
listView.currentIndex = index
}
}
}