Merge pull request #87 from mentalfl0w/dev

Let the pagination can be manually adjusted in FluTableView.
main
zhuzichu 2023-05-09 13:52:32 +08:00 committed by GitHub
commit 8281fa1e9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -118,6 +118,7 @@ Item {
id:pagination
height: 40
pageCurrent: control.pageCurrent
onPageCurrentChanged: control.pageCurrent = pageCurrent
itemCount: control.itemCount
pageCount: control.pageCount
onRequestPage:
@ -128,6 +129,15 @@ Item {
top: parent.top
right: parent.right
}
Connections{
target: control
function onPageCurrentChanged(){
if (control.pageCurrent!==pagination.pageCurrent)
{
pagination.calcNewPage(control.pageCurrent)
}
}
}
}
}
model:model_data_source