first steps to mark read

This commit is contained in:
Jeena 2015-02-09 00:37:31 +01:00
parent 74d5236408
commit ddb54f398c
8 changed files with 27 additions and 4 deletions

View file

@ -9,6 +9,7 @@ ScrollView {
property Server server
property Content content
property Post previousPost
style: ScrollViewStyle {
transientScrollBars: true
@ -48,8 +49,13 @@ ScrollView {
}
onCurrentItemChanged: {
if(previousPost) {
previousPost.read = true;
}
item.content.post = server.posts[currentIndex]
content.flickableItem.contentY = 0
previousPost = item.content.post
}
}
}