Advertisement
Guest User

Untitled

a guest
Apr 3rd, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QML 0.34 KB | None | 0 0
  1.         function fetchMoreIfNeeded() {
  2.             if (!authorBooksPage.busy &&
  3.                     authorBooksModel.hasMore &&
  4.                     indexAt(contentX, contentY + height) > authorBooksModel.rowCount() - 2) {
  5.                 authorBooksModel.fetchMoreContent()
  6.             }
  7.         }
  8.  
  9. onContentYChanged: fetchMoreIfNeeded()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement