Changeset View
Changeset View
Standalone View
Standalone View
org.kde.desktop/MenuItem.qml
Show All 30 Lines | 28 | T.MenuItem { | |||
---|---|---|---|---|---|
31 | @DISABLE_UNDER_QQC2_2_4@ palette: Kirigami.Theme.palette | 31 | @DISABLE_UNDER_QQC2_2_4@ palette: Kirigami.Theme.palette | ||
32 | implicitWidth: Math.max(background ? background.implicitWidth : 0, | 32 | implicitWidth: Math.max(background ? background.implicitWidth : 0, | ||
33 | contentItem.implicitWidth + leftPadding + rightPadding + (arrow ? arrow.implicitWidth : 0)) | 33 | contentItem.implicitWidth + leftPadding + rightPadding + (arrow ? arrow.implicitWidth : 0)) | ||
34 | implicitHeight: visible ? Math.max(background ? background.implicitHeight : 0, | 34 | implicitHeight: visible ? Math.max(background ? background.implicitHeight : 0, | ||
35 | Math.max(contentItem.implicitHeight, | 35 | Math.max(contentItem.implicitHeight, | ||
36 | indicator ? indicator.implicitHeight : 0) + topPadding + bottomPadding) : 0 | 36 | indicator ? indicator.implicitHeight : 0) + topPadding + bottomPadding) : 0 | ||
37 | baselineOffset: contentItem.y + contentItem.baselineOffset | 37 | baselineOffset: contentItem.y + contentItem.baselineOffset | ||
38 | 38 | | |||
39 | width: parent.width | ||||
40 | | ||||
39 | Layout.fillWidth: true | 41 | Layout.fillWidth: true | ||
40 | padding: Kirigami.Units.smallSpacing | 42 | padding: Kirigami.Units.smallSpacing | ||
41 | leftPadding: Kirigami.Units.largeSpacing | 43 | leftPadding: Kirigami.Units.largeSpacing | ||
42 | rightPadding: Kirigami.Units.largeSpacing | 44 | rightPadding: Kirigami.Units.largeSpacing | ||
43 | hoverEnabled: !Kirigami.Settings.isMobile | 45 | hoverEnabled: !Kirigami.Settings.isMobile | ||
44 | 46 | | |||
45 | Kirigami.MnemonicData.enabled: controlRoot.enabled && controlRoot.visible | 47 | Kirigami.MnemonicData.enabled: controlRoot.enabled && controlRoot.visible | ||
46 | Kirigami.MnemonicData.controlType: Kirigami.MnemonicData.MenuItem | 48 | Kirigami.MnemonicData.controlType: Kirigami.MnemonicData.MenuItem | ||
▲ Show 20 Lines • Show All 75 Lines • Show Last 20 Lines |