diff options
| author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-30 09:56:00 +0800 |
|---|---|---|
| committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-30 09:56:00 +0800 |
| commit | c6d43f54be74e284eeecf2d41c4c3ceeeeaa8091 (patch) | |
| tree | 549f068978c93e3ed8657de9a3c52b5674d43ba3 /MinimalGridStackView.ui.qml | |
| parent | af9b8eb4dc009352764bb395f2ed40506da45d9d (diff) | |
Now the grid view is inside a stack view
For now it's assumed that all applications would want to go to the
detail view by having it stacked on the list/grid.
Diffstat (limited to 'MinimalGridStackView.ui.qml')
| -rw-r--r-- | MinimalGridStackView.ui.qml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/MinimalGridStackView.ui.qml b/MinimalGridStackView.ui.qml new file mode 100644 index 0000000..860e37c --- /dev/null +++ b/MinimalGridStackView.ui.qml @@ -0,0 +1,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 {} + } +} |