2019-08-22 04:58:57 +10:00
|
|
|
import QtQuick 2.12
|
|
|
|
import QtQuick.Controls 2.12
|
|
|
|
|
|
|
|
MenuItem {
|
2019-08-22 05:45:13 +10:00
|
|
|
id: menuItem
|
|
|
|
spacing: theme.spacing
|
2019-08-22 06:23:22 +10:00
|
|
|
leftPadding: spacing
|
|
|
|
rightPadding: spacing
|
|
|
|
topPadding: spacing / 1.5
|
|
|
|
bottomPadding: spacing / 1.5
|
2019-08-22 05:45:13 +10:00
|
|
|
|
|
|
|
|
|
|
|
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
|
2019-08-22 05:45:13 +10:00
|
|
|
}
|
2019-08-22 04:58:57 +10:00
|
|
|
}
|