mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-23 19:20:59 +08:00
30 lines
831 B
QML
30 lines
831 B
QML
|
import QtQuick 2.15
|
|||
|
import QtQuick.Controls 2.15
|
|||
|
import QtQuick.Controls.impl 2.15
|
|||
|
import QtQuick.Templates 2.15 as T
|
|||
|
import QtQuick.Shapes 1.15
|
|||
|
|
|||
|
T.MenuItem {
|
|||
|
id: control
|
|||
|
|
|||
|
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
|
|||
|
implicitContentWidth + leftPadding + rightPadding)
|
|||
|
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
|
|||
|
implicitContentHeight + topPadding + bottomPadding,
|
|||
|
implicitIndicatorHeight + topPadding + bottomPadding)
|
|||
|
padding: 0
|
|||
|
spacing: 6
|
|||
|
|
|||
|
contentItem: FluText {
|
|||
|
text: control.text
|
|||
|
}
|
|||
|
|
|||
|
background: Rectangle {
|
|||
|
implicitWidth: 120
|
|||
|
implicitHeight: 30
|
|||
|
width: control.width
|
|||
|
height: control.height
|
|||
|
}
|
|||
|
|
|||
|
}
|