first working showing post

This commit is contained in:
Jeena 2015-01-30 17:36:51 +01:00
parent 0405a8ba39
commit cc59671ff4
6 changed files with 22 additions and 7 deletions

View file

@ -34,10 +34,14 @@ ApplicationWindow {
opacity: 0.5
}
focus: true
onCurrentItemChanged: {
content.experimental.evaluateJavaScript("setArticle(" + server.posts[currentIndex].jsonString + ")")
}
}
}
Content {
id: content
Layout.minimumWidth: 50
Layout.fillWidth: true
}
@ -64,9 +68,7 @@ ApplicationWindow {
Component {
id: delegate
PostListItem {
listView: listView
}
PostListItem {}
}
Component.onCompleted: {