mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 19:38:09 +00:00
Async load on timelines/calls history bt keep sync only on first elements.
This commit is contained in:
parent
76fdbe857b
commit
fa824ac78a
2 changed files with 31 additions and 23 deletions
|
|
@ -122,19 +122,23 @@ ColumnLayout{
|
|||
| (outgoingFilter.checked ? CallHistoryProxyModel.Outgoing : 0)
|
||||
| (missedFilter.checked ? CallHistoryProxyModel.Missed : 0)
|
||||
}
|
||||
|
||||
delegate: CallTimelineItem{
|
||||
callHistoryModel: $modelData
|
||||
modelIndex: index
|
||||
Connections{
|
||||
target: $modelData
|
||||
onSelectedChanged:{
|
||||
if(selected) {
|
||||
view.currentIndex = index;
|
||||
mainItem.entrySelected(model)
|
||||
delegate: Loader{
|
||||
width: view.contentWidth
|
||||
asynchronous: index > 20
|
||||
active: true
|
||||
sourceComponent: CallTimelineItem{
|
||||
callHistoryModel: $modelData
|
||||
modelIndex: index
|
||||
Connections{
|
||||
target: $modelData
|
||||
onSelectedChanged:{
|
||||
if(selected) {
|
||||
view.currentIndex = index;
|
||||
mainItem.entrySelected(model)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -149,18 +149,22 @@ Rectangle {
|
|||
filterFlags: (secureFilter.checked ? TimelineProxyModel.SecureChatRoom : 0)
|
||||
| (chatGroupFilter.checked ? TimelineProxyModel.GroupChatRoom : 0)
|
||||
}
|
||||
|
||||
delegate: TimelineItem{
|
||||
timelineModel: $modelData
|
||||
modelIndex: index
|
||||
optionsTogglable: timeline.optionsTogglable
|
||||
actions: timeline.actions
|
||||
|
||||
Connections{
|
||||
target: $modelData
|
||||
onSelectedChanged:{
|
||||
if(selected) {
|
||||
view.currentIndex = index;
|
||||
delegate: Loader{
|
||||
width: view.contentWidth
|
||||
asynchronous: index > 20
|
||||
active: true
|
||||
sourceComponent: TimelineItem{
|
||||
timelineModel: $modelData
|
||||
modelIndex: index
|
||||
optionsTogglable: timeline.optionsTogglable
|
||||
actions: timeline.actions
|
||||
|
||||
Connections{
|
||||
target: $modelData
|
||||
onSelectedChanged:{
|
||||
if(selected) {
|
||||
view.currentIndex = index;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue