Warning, /maui/mauikit/examples/ToolActions.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 Maui.Theme.colorSet: Maui.Theme.Window 0018 0019 Column 0020 { 0021 anchors.centerIn: parent 0022 spacing: Maui.Style.space.big 0023 0024 Maui.ToolActions 0025 { 0026 checkable: false 0027 Action 0028 { 0029 icon.name: "go-previous" 0030 } 0031 0032 Action 0033 { 0034 icon.name: "go-up" 0035 } 0036 0037 Action 0038 { 0039 icon.name: "go-next" 0040 } 0041 } 0042 0043 Maui.ToolActions 0044 { 0045 checkable: true 0046 autoExclusive: false 0047 0048 Action 0049 { 0050 icon.name: "love" 0051 text: checked 0052 } 0053 0054 Action 0055 { 0056 icon.name: "anchor" 0057 text: checked 0058 } 0059 0060 Action 0061 { 0062 icon.name: "folder" 0063 text: checked 0064 } 0065 } 0066 0067 Maui.ToolActions 0068 { 0069 checkable: true 0070 autoExclusive: true 0071 0072 Action 0073 { 0074 text: "Pick" 0075 } 0076 0077 Action 0078 { 0079 text: "Only" 0080 } 0081 0082 Action 0083 { 0084 text: "One" 0085 } 0086 } 0087 0088 Maui.ToolActions 0089 { 0090 expanded: false 0091 checkable: true 0092 autoExclusive: true 0093 0094 Action 0095 { 0096 text: "Pick" 0097 } 0098 0099 Action 0100 { 0101 text: "Only" 0102 } 0103 0104 Action 0105 { 0106 text: "One" 0107 } 0108 } 0109 0110 Maui.ToolActions 0111 { 0112 id: _actions 0113 checkable: true 0114 autoExclusive: true 0115 cyclic: true 0116 expanded: false 0117 0118 property int currentAction: 0 0119 0120 Action 0121 { 0122 id: _action1 0123 icon.name: "view-list-details" 0124 checked: _actions.currentAction === 0 0125 onTriggered: 0126 { 0127 _actions.currentAction = 0 0128 } 0129 } 0130 0131 Action 0132 { 0133 id: _action2 0134 icon.name: "view-list-icons" 0135 checked: _actions.currentAction === 1 0136 onTriggered: 0137 { 0138 _actions.currentAction = 1 0139 } 0140 } 0141 } 0142 } 0143 0144 } 0145 } 0146