Make model param of clicked signal of var type
When using ModelContextMenu with a JS array the "model" param of the clicked signal is null because QtObject property can only hold QObject but no JS objects. CHANGELOG: The onClicked signal of PlasmaComponents.ModelContextMenu now works properly if model is a JS Array of JS objects REVIEW: 124910
This commit is contained in:
parent
25748ca575
commit
6995193219
@ -58,7 +58,7 @@ PlasmaComponents.ContextMenu {
|
|||||||
* This signal is emitted when a menu item is clicked.
|
* This signal is emitted when a menu item is clicked.
|
||||||
* The attached model properties for that menu item are passed as an argument
|
* The attached model properties for that menu item are passed as an argument
|
||||||
*/
|
*/
|
||||||
signal clicked(QtObject model)
|
signal clicked(var model)
|
||||||
|
|
||||||
//ContextMenu cannot have child items, so in order to have ContextMenu as the root object of this item
|
//ContextMenu cannot have child items, so in order to have ContextMenu as the root object of this item
|
||||||
//we create a new property which contains an item which can then load the child items
|
//we create a new property which contains an item which can then load the child items
|
||||||
|
Loading…
x
Reference in New Issue
Block a user