forked from jeena/FeedTheMonkey
first steps to mark read
This commit is contained in:
parent
74d5236408
commit
ddb54f398c
8 changed files with 27 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue