Changeset View
Changeset View
Standalone View
Standalone View
src/controls/private/ActionsMenu.qml
Show All 38 Lines | 25 | { | |||
---|---|---|---|---|---|
39 | 39 | | |||
40 | Item { | 40 | Item { | ||
41 | id: invisibleItems | 41 | id: invisibleItems | ||
42 | visible: false | 42 | visible: false | ||
43 | } | 43 | } | ||
44 | Instantiator { | 44 | Instantiator { | ||
45 | id: actionsInstantiator | 45 | id: actionsInstantiator | ||
46 | 46 | | |||
47 | active: theMenu.visible | ||||
47 | delegate: QtObject { | 48 | delegate: QtObject { | ||
48 | readonly property QtObject action: modelData | 49 | readonly property QtObject action: modelData | ||
49 | property QtObject item: null | 50 | property QtObject item: null | ||
50 | 51 | | |||
51 | function create() { | 52 | function create() { | ||
52 | if (!action.children || action.children.length === 0) { | 53 | if (!action.children || action.children.length === 0) { | ||
53 | if (action.hasOwnProperty("separator") && action.separator) { | 54 | if (action.hasOwnProperty("separator") && action.separator) { | ||
54 | item = theMenu.separatorDelegate.createObject(null, {}); | 55 | item = theMenu.separatorDelegate.createObject(null, {}); | ||
Show All 23 Lines |