Should be simple:
- handle the single click on the tree and the item. Think the select event is fired in that case. (and action on double click)
- Change cursor icon and remove the item from tree but store its parent if you need to put it in again as it was not dropped on canvas
- handle the mousebutton up over the canvas -> drop there and
- handle the single click on the tree and the item. Think the select event is fired in that case. (and action on double click)
- Change cursor icon and remove the item from tree but store its parent if you need to put it in again as it was not dropped on canvas
- handle the mousebutton up over the canvas -> drop there and