moment/src/qml/Base/HMenuItem.qml

29 lines
633 B
QML
Raw Normal View History

import QtQuick 2.12
import QtQuick.Controls 2.12
MenuItem {
id: menuItem
spacing: theme.spacing
2019-08-22 06:23:22 +10:00
leftPadding: spacing
rightPadding: spacing
topPadding: spacing / 1.75
bottomPadding: spacing / 1.75
readonly property alias iconItem: contentItem.icon
readonly property alias label: contentItem.label
background: HButtonBackground {
button: menuItem
buttonTheme: theme.controls.menuItem
}
contentItem: HButtonContent {
id: contentItem
button: menuItem
buttonTheme: theme.controls.menuItem
2019-08-22 06:23:22 +10:00
label.horizontalAlignment: Label.AlignLeft
}
}