Warning, /maui/mauikit/demo.6/src/controls/GridBrowserPage.qml is written in an unsupported language. File is not indexed.
0001 import QtQuick 0002 import QtQuick.Controls 0003 import QtQuick.Layouts 0004 0005 import org.mauikit.controls as Maui 0006 0007 DemoPage 0008 { 0009 id: control 0010 title: i18n("GridBrowser") 0011 0012 Maui.SectionGroup 0013 { 0014 title: control.title 0015 spacing: control.spacing 0016 0017 DemoSection 0018 { 0019 title: i18n("Grid View") 0020 body: i18n("Grid view layout with an uniform cell width. This is optional.") 0021 0022 column: Maui.Page 0023 { 0024 Layout.fillWidth: true 0025 implicitHeight: 500 0026 0027 headBar.leftContent: Switch 0028 { 0029 checked: _grid.adaptContent 0030 onToggled: _grid.adaptContent = !_grid.adaptContent 0031 text: i18n("Adaptive") 0032 } 0033 0034 Maui.GridBrowser 0035 { 0036 id: _grid 0037 anchors.fill: parent 0038 clip: true 0039 model: 30 0040 0041 itemSize: 160 0042 0043 delegate: Item 0044 { 0045 width: GridView.view.cellWidth 0046 height: GridView.view.cellHeight 0047 Maui.GridBrowserDelegate 0048 { 0049 anchors.fill: parent 0050 anchors.margins: Maui.Style.space.small 0051 label1.text: modelData 0052 iconSource: "folder" 0053 imageSource: "qrc:/assets/6588168.jpg" 0054 } 0055 } 0056 } 0057 } 0058 } 0059 } 0060 }