better sidebar
This commit is contained in:
parent
48d2646545
commit
b24d2bef07
7 changed files with 113 additions and 36 deletions
39
PostListItem.qml
Normal file
39
PostListItem.qml
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue