2
import Ubuntu.Components 0.1
3
import Ubuntu.Content 0.1
10
property bool pickMode: true
11
property list<ContentItem> selectedItems
12
property var activeTransfer
14
function __returnResult() {
15
activeTransfer.items = selectedItems;
16
activeTransfer.state = ContentTransfer.Charged;
21
anchors.top: parent.top
22
anchors.left: parent.left
26
var result = resultComponent.createObject(root);
27
result.url = "file:///picture_1.jpg";
28
selectedItems = [ result ];
29
root.__returnResult();
34
anchors.top: parent.top
35
anchors.right: parent.right
41
var result = resultComponent.createObject(root);
42
result.url = "file:///picture_1.jpg";
45
result = resultComponent.createObject(root);
46
result.url = "file:///picture_2.jpg";
49
selectedItems = results;
50
console.log(selectedItems[0].url + "/" + selectedItems[1].url)
51
root.__returnResult();
57
anchors.bottom: parent.bottom
58
anchors.horizontalCenter: parent.horizontalCenter
62
root.activeTransfer.state = ContentTransfer.Aborted;
63
root.pickMode = false;
75
root.activeTransfer = transfer