Warning, /maui/mauikit/examples/GridBrowser.qml is written in an unsupported language. File is not indexed.
0001 import QtQuick 0002 import QtQuick.Controls 0003 import QtQuick.Layouts 0004 import org.mauikit.controls as Maui 0005 0006 Maui.ApplicationWindow 0007 { 0008 id: root 0009 0010 Maui.Page 0011 { 0012 id: _page 0013 anchors.fill: parent 0014 Maui.Controls.showCSD: true 0015 headBar.forceCenterMiddleContent: true 0016 0017 headBar.leftContent: Switch 0018 { 0019 text: "Adapt Content" 0020 checked: _gridBrowser.adaptContent 0021 onToggled: _gridBrowser.adaptContent = !_gridBrowser.adaptContent 0022 } 0023 0024 Maui.GridBrowser 0025 { 0026 id: _gridBrowser 0027 anchors.fill: parent 0028 model: 30 0029 0030 itemSize: 200 0031 itemHeight: 200 0032 cellHeight: 300 0033 0034 adaptContent: true 0035 0036 delegate: Rectangle 0037 { 0038 width: GridView.view.cellWidth 0039 height: GridView.view.cellHeight 0040 color: "gray" 0041 border.color: "white" 0042 0043 Rectangle 0044 { 0045 width: _gridBrowser.itemSize 0046 height: _gridBrowser.itemSize 0047 0048 color: "yellow" 0049 0050 anchors.centerIn: parent 0051 } 0052 } 0053 } 0054 } 0055 } 0056