Warning, /maui/mauikit/examples/SidebarView.qml is written in an unsupported language. File is not indexed.
0001 import QtQuick 0002 import QtQuick.Controls 0003 import org.mauikit.controls as Maui 0004 0005 Maui.ApplicationWindow 0006 { 0007 id: root 0008 0009 Maui.SideBarView 0010 { 0011 id: _sideBar 0012 anchors.fill: parent 0013 0014 sideBarContent: Maui.Page 0015 { 0016 Maui.Theme.colorSet: Maui.Theme.Window 0017 anchors.fill: parent 0018 0019 headBar.leftContent: Maui.ToolButtonMenu 0020 { 0021 icon.name: "application-menu" 0022 MenuItem 0023 { 0024 text: "About" 0025 icon.name: "info-dialog" 0026 onTriggered: root.about() 0027 } 0028 } 0029 0030 Maui.Holder 0031 { 0032 anchors.fill: parent 0033 title: "SideBar" 0034 body: "Collapsable." 0035 emoji: "folder" 0036 } 0037 } 0038 0039 Maui.Page 0040 { 0041 anchors.fill: parent 0042 Maui.Controls.showCSD: true 0043 0044 headBar.leftContent: ToolButton 0045 { 0046 icon.name: _sideBar.sideBar.visible ? "sidebar-collapse" : "sidebar-expand" 0047 onClicked: _sideBar.sideBar.toggle() 0048 } 0049 0050 Maui.Holder 0051 { 0052 anchors.fill: parent 0053 title: "Page" 0054 body: "Page main content." 0055 emoji: "application-x-addon-symbolic" 0056 } 0057 } 0058 } 0059 }