Warning, /maui/mauikit/examples/SettingsDialog.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 0015 Maui.Controls.showCSD: true 0016 0017 Button 0018 { 0019 anchors.centerIn: parent 0020 text: "Click me" 0021 onClicked: _settingsDialog.open() 0022 } 0023 0024 Maui.SettingsDialog 0025 { 0026 id: _settingsDialog 0027 0028 Maui.FlexSectionItem 0029 { 0030 label1.text: "SSetting Subpage" 0031 label2.text: "Click me to add a new page" 0032 0033 ToolButton 0034 { 0035 icon.name: "go-next" 0036 checkable: true 0037 onToggled: _settingsDialog.addPage(_settingsPage2) 0038 } 0039 } 0040 0041 Maui.SectionGroup 0042 { 0043 title: "First Section" 0044 0045 Maui.FlexSectionItem 0046 { 0047 label1.text: "Configuration title" 0048 label2.text: "Description text" 0049 0050 Button 0051 { 0052 text: "Test" 0053 } 0054 } 0055 0056 Maui.FlexSectionItem 0057 { 0058 label1.text: "Configuration title" 0059 label2.text: "Description text" 0060 0061 Switch {} 0062 } 0063 0064 Maui.FlexSectionItem 0065 { 0066 label1.text: "Configuration title" 0067 label2.text: "Description text" 0068 0069 Switch {} 0070 } 0071 } 0072 0073 Maui.SectionGroup 0074 { 0075 title: "A Second Section" 0076 0077 Maui.FlexSectionItem 0078 { 0079 label1.text: "Configuration title" 0080 label2.text: "Description text" 0081 0082 Switch {} 0083 } 0084 0085 Maui.FlexSectionItem 0086 { 0087 label1.text: "Configuration title" 0088 label2.text: "Description text" 0089 wide: false 0090 TextField 0091 { 0092 Layout.fillWidth: true 0093 } 0094 } 0095 0096 Maui.FlexSectionItem 0097 { 0098 label1.text: "Configuration title" 0099 label2.text: "Description text" 0100 0101 Switch {} 0102 } 0103 } 0104 0105 Component 0106 { 0107 id: _settingsPage2 0108 0109 Maui.SettingsPage 0110 { 0111 title: "Page2" 0112 0113 Maui.FlexSectionItem 0114 { 0115 label1.text: "Configuration title" 0116 label2.text: "Description text" 0117 0118 Switch {} 0119 } 0120 } 0121 } 0122 } 0123 } 0124 } 0125