Warning, /maui/booth/src/views/roll/RollView.qml is written in an unsupported language. File is not indexed.
0001 import QtQuick.Controls 2.14 0002 import QtQuick 2.14 0003 import QtQuick.Layouts 1.3 0004 0005 import org.kde.kirigami 2.6 as Kirigami 0006 import org.mauikit.controls 1.2 as Maui 0007 import org.mauikit.filebrowsing 1.2 as FB 0008 0009 Maui.Page 0010 { 0011 id: control 0012 0013 0014 Kirigami.ScrollablePage 0015 { 0016 anchors.fill: parent 0017 0018 0019 Flow 0020 { 0021 0022 // property int rowCount: parent.width / (elements.itemAt(0).width + spacing) 0023 // property int rowWidth: rowCount * elements.itemAt(0).width + (rowCount - 1) * spacing 0024 // property int mar: (parent.width - rowWidth) / 2 0025 0026 // anchors { 0027 // fill: parent 0028 // leftMargin: mar 0029 // rightMargin: mar 0030 // } 0031 0032 spacing: 6 0033 0034 Repeater 0035 { 0036 id: elements 0037 model: Maui.BaseModel 0038 { 0039 list: FB.FMList 0040 { 0041 path: "file:///home/camilo/Pictures" 0042 filterType: Maui.FMList.IMAGE 0043 0044 } 0045 } 0046 delegate: Image 0047 { 0048 sourceSize.height: 120 0049 // width: 100 0050 0051 fillMode: Image.PreserveAspectFit 0052 source: model.path 0053 } 0054 0055 } 0056 0057 0058 } 0059 } 0060 }