Change icon size, reset positioner
This commit is contained in:
parent
4f57fa63b8
commit
0ff861b977
1 changed files with 5 additions and 0 deletions
|
@ -46,6 +46,11 @@ GridView {
|
|||
|
||||
signal keyPress(var event)
|
||||
|
||||
onIconSizeChanged: {
|
||||
// 图标大小改变时需要重置状态,否则选中定位不准确
|
||||
positioner.reset()
|
||||
}
|
||||
|
||||
function effectiveNavDirection(flow, layoutDirection, direction) {
|
||||
if (direction === Qt.LeftArrow) {
|
||||
if (flow === GridView.FlowLeftToRight) {
|
||||
|
|
Loading…
Reference in a new issue