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