2019-08-21 14:58:57 -04:00
|
|
|
import QtQuick 2.12
|
|
|
|
import QtQuick.Controls 2.12
|
|
|
|
|
|
|
|
MenuItem {
|
2019-08-21 15:45:13 -04:00
|
|
|
id: menuItem
|
|
|
|
spacing: theme.spacing
|
2019-08-21 16:23:22 -04:00
|
|
|
leftPadding: spacing
|
2019-08-22 09:27:26 -04:00
|
|
|
rightPadding: leftPadding
|
2019-08-21 16:29:44 -04:00
|
|
|
topPadding: spacing / 1.75
|
2019-08-22 09:27:26 -04:00
|
|
|
bottomPadding: topPadding
|
2019-08-21 16:41:52 -04:00
|
|
|
height: visible ? implicitHeight : 0
|
2019-08-21 15:45:13 -04: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-21 16:23:22 -04:00
|
|
|
label.horizontalAlignment: Label.AlignLeft
|
2019-08-21 15:45:13 -04:00
|
|
|
}
|
2019-08-21 14:58:57 -04:00
|
|
|
}
|