/* SPDX-FileCopyrightText: 2021 Carson Black SPDX-License-Identifier: LGPL-3.0-only OR GPL-2.0-or-later */ import QtQuick import QtQuick.Templates as T import org.kde.kirigami as Kirigami T.MenuBar { id: controlRoot Kirigami.Theme.colorSet: Kirigami.Theme.Header Kirigami.Theme.inherit: false implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset, contentWidth + leftPadding + rightPadding) implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset, contentHeight + topPadding + bottomPadding) delegate: MenuBarItem {} contentItem: Row { spacing: controlRoot.spacing Repeater { model: controlRoot.contentModel } } background: Rectangle { color: Kirigami.Theme.backgroundColor } }