Merge pull request #87 from mentalfl0w/dev
Let the pagination can be manually adjusted in FluTableView.main
commit
8281fa1e9d
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue