pasteChildren inserts object(s) from mime data at end of children of this node
(md mimedata.Mimes, mod events.DropMods)
| 1467 | // pasteChildren inserts object(s) from mime data |
| 1468 | // at end of children of this node |
| 1469 | func (tr *Tree) pasteChildren(md mimedata.Mimes, mod events.DropMods) { |
| 1470 | if tr.SyncNode != nil { |
| 1471 | tr.pasteChildrenSync(md, mod) |
| 1472 | return |
| 1473 | } |
| 1474 | sl, _ := tr.nodesFromMimeData(md) |
| 1475 | |
| 1476 | for _, ns := range sl { |
| 1477 | tr.AddChild(ns) |
| 1478 | nwb := AsWidget(ns) |
| 1479 | ntv := AsTree(ns) |
| 1480 | ntv.root = tr.root |
| 1481 | nwb.setScene(tr.Scene) |
| 1482 | } |
| 1483 | tr.Update() |
| 1484 | tr.Open() |
| 1485 | tr.treeChanged() |
| 1486 | } |
| 1487 | |
| 1488 | ////////////////////////////////////////////////////////////////////////////// |
| 1489 | // Drag-n-Drop |
no test coverage detected