Warning, /maui/mauikit/src/csd.6/OSX/CSD.qml is written in an unsupported language. File is not indexed.

0001 import QtQuick
0002 import QtQuick.Controls
0003 import QtQuick.Window
0004 
0005 import org.mauikit.controls as Maui
0006 
0007 Control
0008 {
0009     id: control
0010 
0011     implicitHeight: implicitContentHeight + topPadding + bottomPadding
0012     implicitWidth: implicitContentWidth + leftPadding + rightPadding
0013 
0014     spacing: Maui.Style.space.small
0015     padding: Maui.Style.defaultPadding
0016 
0017     hoverEnabled: true
0018 
0019     contentItem: Row
0020     {
0021         spacing: control.spacing
0022         
0023         Repeater
0024         {
0025             model: buttonsModel
0026             delegate: pluginButton
0027         }
0028     }
0029     
0030     Component
0031     {
0032         id: pluginButton
0033         
0034         AbstractButton
0035         {
0036             id: _button
0037             visible: modelData === "A" ? canMaximize : true
0038             
0039             width: height
0040             height: 16
0041             
0042             Maui.CSDButton
0043             {
0044                 id: button
0045                 style: "OSX"
0046                 type: mapType(modelData)
0047                 isHovered: control.hovered
0048                 isPressed: _button.pressed
0049                 isFocused:  isActiveWindow
0050                 isMaximized: maximized
0051             }
0052             
0053             contentItem: Image
0054             {
0055                 smooth: true
0056                 source: button.source
0057             }
0058             
0059             onClicked: buttonClicked(button.type)
0060         }
0061     }
0062 }