Warning, /maui/mauikit/demo.6/src/controls/TemplatesPage.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("Templates") 0011 0012 Maui.SectionGroup 0013 { 0014 title: control.title 0015 spacing: control.spacing 0016 0017 DemoSection 0018 { 0019 title: i18n("ListItemTemplate") 0020 body: i18n("MauiKit control for a place holder message with optional list of actions.") 0021 sampleText: 'import org.mauikit.controls as Maui 0022 Maui.ListItemTemplate 0023 { 0024 imageSource: "qrc:/assets/6588168.jpg" 0025 label1.text: "Title of template" 0026 label2.text: "Subtitle of the template" 0027 label3.text: "+info" 0028 0029 ToolButton 0030 { 0031 flat: true 0032 icon.name: "list-add" 0033 } 0034 }' 0035 column: [Maui.ListItemTemplate 0036 { 0037 Layout.fillWidth: true 0038 0039 imageSource: "qrc:/assets/6588168.jpg" 0040 label1.text: "Title of template" 0041 label2.text: "Subtitle of the template" 0042 label3.text: "+info" 0043 0044 ToolButton 0045 { 0046 flat: true 0047 icon.name: "list-add" 0048 } 0049 }, 0050 0051 Maui.ListItemTemplate 0052 { 0053 Layout.fillWidth: true 0054 0055 iconSource: "folder-pink" 0056 label1.text: "Title of template" 0057 label2.text: "Subtitle of the template" 0058 label3.text: "+info" 0059 }, 0060 0061 Maui.ListItemTemplate 0062 { 0063 Layout.fillWidth: true 0064 0065 imageSource: "qrc:/assets/6588168.jpg" 0066 headerSizeHint: 64 0067 maskRadius: Maui.Style.radiusV 0068 label1.text: "Title of template" 0069 label2.text: "Subtitle of the template" 0070 label3.text: "+info" 0071 0072 ToolButton 0073 { 0074 flat: true 0075 icon.name: "list-add" 0076 } 0077 } 0078 ] 0079 } 0080 0081 DemoSection 0082 { 0083 title: i18n("GridItemTemplate") 0084 body: i18n("MauiKit control for a place holder message with optional list of actions.") 0085 sampleText: 'import org.mauikit.controls as Maui 0086 Maui.GridItemTemplate 0087 { 0088 height: 200 0089 imageSource: "qrc:/assets/6588168.jpg" 0090 label1.text: "Title of template" 0091 label2.text: "Subtitle of the template" 0092 } 0093 ' 0094 Maui.GridItemTemplate 0095 { 0096 implicitHeight: 200 0097 implicitWidth: 200 0098 imageSource: "qrc:/assets/6588168.jpg" 0099 label1.text: "Title of template" 0100 label2.text: "Subtitle of the template" 0101 } 0102 0103 Maui.GridItemTemplate 0104 { 0105 implicitHeight: 200 0106 implicitWidth: 200 0107 maskRadius: 40 0108 alignment: Qt.AlignLeft 0109 imageSource: "qrc:/assets/6919759.jpg" 0110 label1.text: "Title of template" 0111 label2.text: "Subtitle of the template" 0112 } 0113 0114 Maui.GridItemTemplate 0115 { 0116 implicitHeight: 200 0117 implicitWidth: 200 0118 alignment: Qt.AlignLeft 0119 iconSource: "folder-green" 0120 iconSizeHint: Maui.Style.iconSizes.big 0121 label1.text: "Title of template" 0122 label2.text: "Subtitle of the template" 0123 } 0124 } 0125 0126 DemoSection 0127 { 0128 title: i18n("IconItem") 0129 body: i18n("MauiKit control for a place holder message with optional list of actions.") 0130 sampleText: 'import org.mauikit.controls as Maui 0131 Maui.IconItem 0132 { 0133 imageSource: "qrc:/assets/6588168.jpg" 0134 imageSizeHint: 200 0135 maskRadius: Maui.Style.radiusV 0136 fillMode: Image.PreserveAspectCrop 0137 } 0138 ' 0139 Maui.IconItem 0140 { 0141 imageSource: "qrc:/assets/6588168.jpg" 0142 imageSizeHint: 200 0143 fillMode: Image.PreserveAspectFit 0144 } 0145 0146 Maui.IconItem 0147 { 0148 imageSource: "qrc:/assets/6919759.jpg" 0149 imageSizeHint: 200 0150 maskRadius: Maui.Style.radiusV 0151 fillMode: Image.PreserveAspectCrop 0152 } 0153 0154 Maui.IconItem 0155 { 0156 iconSource: "folder-pink" 0157 iconSizeHint: Maui.Style.iconSizes.huge 0158 isMask: false 0159 } 0160 } 0161 0162 DemoSection 0163 { 0164 title: i18n("GalleryRollTemplate") 0165 body: i18n("MauiKit control for a place holder message with optional list of actions.") 0166 sampleText: 'import org.mauikit.controls as Maui 0167 Maui.IconItem 0168 { 0169 imageSource: "qrc:/assets/6588168.jpg" 0170 imageSizeHint: 200 0171 maskRadius: Maui.Style.radiusV 0172 fillMode: Image.PreserveAspectCrop 0173 } 0174 ' 0175 Maui.GalleryRollTemplate 0176 { 0177 implicitHeight: 120 0178 implicitWidth: 120 0179 0180 images: ["qrc:/assets/6588168.jpg", "qrc:/assets/6628908.jpg", "qrc:/assets/6919759.jpg"] 0181 } 0182 0183 Maui.GalleryRollTemplate 0184 { 0185 implicitHeight: 120 0186 implicitWidth: 120 0187 radius: Maui.Style.radiusV 0188 images: ["qrc:/assets/6588168.jpg", "qrc:/assets/6628908.jpg", "qrc:/assets/6919759.jpg"] 0189 } 0190 } 0191 } 0192 }