Remove StrictlyEnforceRange

This causes nasty effects in the view
This commit is contained in:
Luca Beltrame 2015-02-08 12:03:43 +01:00
parent 9b27b329ca
commit 5035caf3ef

View file

@ -46,8 +46,6 @@ Rectangle {
Rectangle { Rectangle {
width: grid.cellWidth; height: grid.cellHeight width: grid.cellWidth; height: grid.cellHeight
color: "lightsteelblue"; radius: 5 color: "lightsteelblue"; radius: 5
x: grid.currentItem.x
y: grid.currentItem.y
} }
} }
@ -191,16 +189,17 @@ Rectangle {
flow: GridView.FlowLeftToRight flow: GridView.FlowLeftToRight
anchors.fill: parent anchors.fill: parent
clip: true
highlight: highlight highlight: highlight
highlightFollowsCurrentItem: true highlightFollowsCurrentItem: true
highlightRangeMode: GridView.StrictlyEnforceRange highlightRangeMode: GridView.ApplyRange
model: danbooruModel model: danbooruModel
delegate: viewDelegate delegate: viewDelegate
focus: true focus: true
Component.onCompleted: { currentIndex = 0} Component.onCompleted: { currentIndex = -1; forceActiveFocus()}
onAtYEndChanged: { onAtYEndChanged: {
if (grid.atYEnd) { if (grid.atYEnd) {