Warning, /maui/mauikit/src/controls.5/SettingsDialog.qml is written in an unsupported language. File is not indexed.
0001 import org.mauikit.controls 1.3 as Maui 0002 import QtQuick.Controls 2.14 0003 import QtQuick.Layouts 1.3 0004 0005 /*! 0006 \since org.mauikit.controls 1.0 0007 \inqmlmodule org.mauikit.controls 0008 */ 0009 Maui.PopupPage 0010 { 0011 id: control 0012 0013 default property alias content: _content.content 0014 property alias stackView: _stackView 0015 0016 maxHeight: implicitHeight 0017 maxWidth: 500 0018 0019 hint: 1 0020 0021 page.title: _stackView.currentItem.title ? _stackView.currentItem.title : "" 0022 0023 headBar.visible: true 0024 0025 spacing: Maui.Style.defaultSpacing * 2 0026 0027 headBar.leftContent: ToolButton 0028 { 0029 icon.name: "go-previous" 0030 visible: _stackView.depth > 1 0031 // text: _stackView.depth > 1 ? (_stackView.get(_stackView.currentItem.StackView.index-1, StackView.DontLoad).title) : "" 0032 0033 onClicked: _stackView.pop() 0034 } 0035 0036 stack: StackView 0037 { 0038 id: _stackView 0039 Layout.fillHeight: true 0040 Layout.fillWidth: true 0041 implicitHeight: Math.max(_content.implicitHeight, currentItem.implicitHeight)+topPadding +bottomPadding 0042 0043 initialItem: Maui.SettingsPage 0044 { 0045 id:_content 0046 spacing: control.spacing 0047 } 0048 } 0049 0050 function addPage(component) 0051 { 0052 _stackView.push(component) 0053 } 0054 }