Changeset View
Changeset View
Standalone View
Standalone View
src/controls/private/GlobalDrawerActionItem.qml
Show All 29 Lines | 25 | BasicListItem { | |||
---|---|---|---|---|---|
30 | 30 | | |||
31 | readonly property bool isExpandible: modelData && modelData.hasOwnProperty("expandible") && modelData.expandible | 31 | readonly property bool isExpandible: modelData && modelData.hasOwnProperty("expandible") && modelData.expandible | ||
32 | 32 | | |||
33 | reserveSpaceForIcon: !isSeparator | 33 | reserveSpaceForIcon: !isSeparator | ||
34 | reserveSpaceForLabel: !isSeparator | 34 | reserveSpaceForLabel: !isSeparator | ||
35 | checked: modelData.checked || (actionsMenu && actionsMenu.visible) | 35 | checked: modelData.checked || (actionsMenu && actionsMenu.visible) | ||
36 | width: parent.width | 36 | width: parent.width | ||
37 | 37 | | |||
38 | icon: modelData.iconName | 38 | icon: modelData.icon | ||
39 | iconColor: modelData.icon.color | 39 | iconColor: modelData.icon.color | ||
40 | 40 | | |||
41 | label: width > height * 2 ? MnemonicData.richTextLabel : "" | 41 | label: width > height * 2 ? MnemonicData.richTextLabel : "" | ||
42 | 42 | | |||
43 | MnemonicData.enabled: listItem.enabled && listItem.visible | 43 | MnemonicData.enabled: listItem.enabled && listItem.visible | ||
44 | MnemonicData.controlType: MnemonicData.MenuItem | 44 | MnemonicData.controlType: MnemonicData.MenuItem | ||
45 | MnemonicData.label: modelData.text | 45 | MnemonicData.label: modelData.text | ||
46 | property ActionsMenu actionsMenu: ActionsMenu { | 46 | property ActionsMenu actionsMenu: ActionsMenu { | ||
▲ Show 20 Lines • Show All 105 Lines • Show Last 20 Lines |