added previews next
This commit is contained in:
parent
ee6ba89ab4
commit
218f556a98
6 changed files with 40 additions and 15 deletions
13
Content.qml
13
Content.qml
|
@ -16,7 +16,9 @@ ScrollView {
|
|||
property Post post: content.post
|
||||
|
||||
function setPost() {
|
||||
experimental.evaluateJavaScript("setArticle(" + post.jsonString + ")")
|
||||
if(post) {
|
||||
experimental.evaluateJavaScript("setArticle(" + post.jsonString + ")")
|
||||
}
|
||||
}
|
||||
|
||||
// Enable communication between QML and WebKit
|
||||
|
@ -31,12 +33,7 @@ ScrollView {
|
|||
}
|
||||
}
|
||||
|
||||
onLoadingChanged: {
|
||||
setPost()
|
||||
}
|
||||
|
||||
onPostChanged: {
|
||||
setPost();
|
||||
}
|
||||
onLoadingChanged: setPost()
|
||||
onPostChanged: setPost()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue