Remove StrictlyEnforceRange
This causes nasty effects in the view
This commit is contained in:
parent
9b27b329ca
commit
5035caf3ef
1 changed files with 3 additions and 4 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue