Let the pagination can be manually adjusted in FluTableView.

main
Mentalflow 2023-05-09 10:57:11 +08:00
parent eaad0dc565
commit 26e9b5d298
No known key found for this signature in database
GPG Key ID: 5AE68D4401A2EE71
1 changed files with 10 additions and 0 deletions

View File

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