Warning, /frameworks/qqc2-desktop-style/org.kde.desktop/MenuBar.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 SPDX-FileCopyrightText: 2021 Carson Black <uhhadd@gmail.com> 0003 0004 SPDX-License-Identifier: LGPL-3.0-only OR GPL-2.0-or-later 0005 */ 0006 0007 0008 import QtQuick 2.6 0009 import QtQuick.Layouts 1.2 0010 import QtQuick.Templates 2.15 as T 0011 import org.kde.kirigami 2.4 as Kirigami 0012 0013 T.MenuBar { 0014 id: controlRoot 0015 0016 Kirigami.Theme.colorSet: Kirigami.Theme.Header 0017 Kirigami.Theme.inherit: false 0018 0019 implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset, 0020 contentWidth + leftPadding + rightPadding) 0021 implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset, 0022 contentHeight + topPadding + bottomPadding) 0023 0024 delegate: MenuBarItem {} 0025 0026 contentItem: Row { 0027 spacing: controlRoot.spacing 0028 Repeater { 0029 model: controlRoot.contentModel 0030 } 0031 } 0032 0033 background: Rectangle { 0034 color: Kirigami.Theme.backgroundColor 0035 } 0036 }