Changeset View
Changeset View
Standalone View
Standalone View
org.kde.desktop/Menu.qml
Show All 32 Lines | |||||
33 | @DISABLE_UNDER_QQC2_2_4@ palette: Kirigami.Theme.palette | 33 | @DISABLE_UNDER_QQC2_2_4@ palette: Kirigami.Theme.palette | ||
34 | implicitWidth: Math.max(background ? background.implicitWidth : 0, | 34 | implicitWidth: Math.max(background ? background.implicitWidth : 0, | ||
35 | contentItem ? contentItem.implicitWidth + leftPadding + rightPadding : 0) | 35 | contentItem ? contentItem.implicitWidth + leftPadding + rightPadding : 0) | ||
36 | implicitHeight: Math.max(background ? background.implicitHeight : 0, | 36 | implicitHeight: Math.max(background ? background.implicitHeight : 0, | ||
37 | contentItem ? contentItem.implicitHeight : 0) + topPadding + bottomPadding | 37 | contentItem ? contentItem.implicitHeight : 0) + topPadding + bottomPadding | ||
38 | 38 | | |||
39 | margins: 0 | 39 | margins: 0 | ||
40 | 40 | | |||
41 | @DISABLE_UNDER_QQC2_2_3@ delegate: MenuItem { width: parent.width; onImplicitWidthChanged: control.contentItem.contentItem.childrenChanged() } | 41 | @DISABLE_UNDER_QQC2_2_3@ delegate: MenuItem { onImplicitWidthChanged: control.contentItem.contentItem.childrenChanged() } | ||
42 | 42 | | |||
43 | contentItem: ListView { | 43 | contentItem: ListView { | ||
44 | implicitHeight: contentHeight | 44 | implicitHeight: contentHeight | ||
45 | property bool hasCheckables: false | 45 | property bool hasCheckables: false | ||
46 | property bool hasIcons: false | 46 | property bool hasIcons: false | ||
47 | model: control.contentModel | 47 | model: control.contentModel | ||
48 | 48 | | |||
49 | implicitWidth: { | 49 | implicitWidth: { | ||
▲ Show 20 Lines • Show All 68 Lines • Show Last 20 Lines |