43 Accessible.ignored: true
50 default property alias delegate: repeater.delegate
55 property real cellWidth
60 property real cellHeight
69 property alias model: repeater.model
74 property real widthOverride: parent.width
79 property real heightOverride: parent.height
84 property real minColumnSpacing
87 var flooredResult = Math.floor(widthOverride / cellWidth);
88 if (flooredResult >= 1 && flooredResult <= repeater.count)
89 if ((widthOverride - (flooredResult * cellWidth)) / (flooredResult + 1) < minColumnSpacing)
90 return flooredResult - 1;
93 else if (flooredResult > repeater.count)
94 return repeater.count;
99 columnSpacing: (widthOverride - (columns * cellWidth)) / (columns + 1) < (minColumnSpacing / 2) ? (minColumnSpacing / 2) : (widthOverride - (columns * cellWidth)) / (columns + 1)
100 width: widthOverride - 2 * columnSpacing