Warning, /maui/bonsai/src/views/ToolButtonOp.qml is written in an unsupported language. File is not indexed.

0001 import QtQuick 2.15
0002 import QtQuick.Controls 2.15
0003 import QtQuick.Layouts 1.12
0004 
0005 import org.mauikit.controls 1.3 as Maui
0006 
0007 AbstractButton
0008 {
0009     id: control
0010 
0011     default property alias actions : _menu.contentData
0012 
0013     contentItem: Maui.ToolActions
0014     {
0015         autoExclusive: false
0016         expanded: true
0017         display: control.display
0018         checkable: false
0019 
0020         Action
0021         {
0022             icon: control.icon
0023             text: control.text
0024             onTriggered: control.clicked()
0025         }
0026 
0027         Action
0028         {
0029             onTriggered: _menu.popup()
0030 //            icon.height: 8
0031 //            icon.width: 8
0032             icon.name: "view-more-horizontal-symbolic"
0033             checked: _menu.visible
0034         }
0035     }
0036 
0037    data: Menu
0038     {
0039         id: _menu
0040     }
0041 }