Warning, /maui/mauikit-accounts/examples/AccountsMenuItem.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 import org.mauikit.accounts as MA
0006 
0007 Maui.ApplicationWindow
0008 {
0009     id: root
0010 
0011     Maui.Page
0012     {
0013         id: _page
0014         anchors.fill: parent
0015 
0016         Maui.Controls.showCSD: true
0017         headBar.rightContent: Switch
0018         {
0019             checked: _page.altHeader
0020             onToggled: _page.altHeader = !_page.altHeader
0021         }
0022 
0023         headBar.leftContent: Maui.ToolButtonMenu
0024         {
0025             icon.name: "application-menu"
0026             MA.AccountsMenuItem {}
0027 
0028             MenuSeparator {}
0029 
0030             MenuItem
0031             {
0032                 text: "About"
0033                 onTriggered: root.about()
0034             }
0035         }
0036 
0037         Rectangle
0038         {
0039             color: "pink"
0040             anchors.fill: parent
0041         }
0042 
0043     }
0044 }
0045