summaryrefslogtreecommitdiff
path: root/MinimalGridStackView.ui.qml
blob: 860e37cb25f966839fe7027e3584547042983729 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import QtQuick 2.15
import QtQuick.Controls 2.15

StackView {
	property alias grid: grid

	id: stack
	initialItem: GridView {
		id: grid
		cellWidth: width < 576 ? stack.width : width < 768
			? stack.width / 2 : width < 992 ? stack.width / 3
			: stack.width / 4
		cellHeight: cellWidth * 1.3
		ScrollBar.vertical: ScrollBar {}
	}
}