Ubuntu: workaround ListView highlight bug
This commit is contained in:
parent
265def2f20
commit
37b3df0f61
1 changed files with 4 additions and 2 deletions
|
|
@ -44,9 +44,8 @@ Page {
|
|||
anchors.fill: parent
|
||||
orientation: ListView.Horizontal
|
||||
snapMode: ListView.SnapOneItem
|
||||
highlightFollowsCurrentItem: true
|
||||
highlightFollowsCurrentItem: false
|
||||
highlightRangeMode: ListView.StrictlyEnforceRange
|
||||
cacheBuffer: 0
|
||||
|
||||
delegate: FeedItem {
|
||||
title: model.title
|
||||
|
|
@ -73,7 +72,10 @@ Page {
|
|||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
/* For some reason, unless this is done here, the ListView would
|
||||
* instantiate all the delegates when the page is first shown. */
|
||||
listView.model = root.model
|
||||
listView.currentIndex = root.currentIndex
|
||||
listView.highlightFollowsCurrentItem = true
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue