first working showing post
This commit is contained in:
parent
0405a8ba39
commit
cc59671ff4
6 changed files with 22 additions and 7 deletions
8
main.qml
8
main.qml
|
@ -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: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue