2019-12-19 22:46:16 +11:00
|
|
|
// SPDX-License-Identifier: LGPL-3.0-or-later
|
|
|
|
|
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
|
2019-08-22 23:27:26 +10:00
|
|
|
rightPadding: leftPadding
|
2019-08-22 06:29:44 +10:00
|
|
|
topPadding: spacing / 1.75
|
2019-08-22 23:27:26 +10:00
|
|
|
bottomPadding: topPadding
|
2019-08-22 06:41:52 +10:00
|
|
|
height: visible ? implicitHeight : 0
|
2019-08-22 05:45:13 +10:00
|
|
|
|
|
|
|
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-12-21 01:29:45 +11:00
|
|
|
|
|
|
|
|
|
|
|
readonly property alias iconItem: contentItem.icon
|
|
|
|
readonly property alias label: contentItem.label
|
2019-08-22 04:58:57 +10:00
|
|
|
}
|