Warning, /maui/mauikit/examples/FlexSectionItem.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 
0014         anchors.fill: parent
0015         Maui.Controls.showCSD: true
0016         Maui.Theme.colorSet: Maui.Theme.Complementary
0017 
0018         Maui.ScrollColumn
0019         {
0020             anchors.centerIn: parent
0021             width: Math.min(parent.width, 600)
0022             spacing: Maui.Style.space.big
0023 
0024             Maui.SectionGroup
0025             {
0026                 title: "Section with Children"
0027                 description: "The description label can be a bit longer explaining something importand. Maybe?"
0028 
0029                 Maui.FlexSectionItem
0030                 {
0031                     label1.text: "Checkable section item"
0032                     iconSource: "folder"
0033 
0034                     Switch
0035                     {
0036                         onToggled: checked = !checked
0037                     }
0038 
0039                     Button
0040                     {
0041                         text: "Example"
0042                     }
0043                 }
0044 
0045                 Maui.FlexSectionItem
0046                 {
0047                     label1.text: "Checkable section item"
0048                     iconSource: "folder"
0049 
0050                     Button
0051                     {
0052                         text: "Example"
0053                         checkable: true
0054                         onToggled: checked = !checked
0055                     }
0056                 }
0057             }
0058         }
0059     }
0060 }
0061