1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- import QtQuick
- import QtQuick.Templates as T
- import QtQuick.Controls.impl
- T.MenuBar {
- id: control
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
- delegate: MenuBarItem { }
- contentItem: Row {
- spacing: control.spacing
- Repeater {
- model: control.contentModel
- }
- }
- background: Rectangle {
- implicitHeight: 40
- color: control.palette.button
- }
- }
|