Warning, /maui/mauikit/examples/ContextualMenu.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.Window 0017 headBar.forceCenterMiddleContent: true 0018 0019 Button 0020 { 0021 anchors.centerIn: parent 0022 text: "Click Me!" 0023 onClicked: _contextualMenu.show() 0024 0025 Maui.ContextualMenu 0026 { 0027 id: _contextualMenu 0028 0029 title: "Menu Title" 0030 titleIconSource: "folder" 0031 0032 Maui.MenuItemActionRow 0033 { 0034 Action 0035 { 0036 text: "Action1" 0037 icon.name: "love" 0038 } 0039 0040 Action 0041 { 0042 text: "Action2" 0043 icon.name: "folder" 0044 } 0045 0046 Action 0047 { 0048 text: "Action3" 0049 icon.name: "anchor" 0050 } 0051 } 0052 0053 MenuSeparator {} 0054 0055 MenuItem 0056 { 0057 text: "Action3" 0058 icon.name: "actor" 0059 } 0060 0061 MenuItem 0062 { 0063 text: "Action4" 0064 icon.name: "anchor" 0065 } 0066 } 0067 } 0068 } 0069 } 0070