1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 | PopupUtils.open(Qt.resolvedUrl("dialogs/ConfirmationDialog.qml"), dialogsListItem, {
text: function() {
var title = Qt.binding( function(){ return model.title; } );
var transfer = Qt.binding( function(){ return root.transfer; } );
var transferHelper = Qt.binding( function(){ return root.transferHelper; } );
if (transfer.contentType == ContentType.Pictures) {
return "foo"; // not this
} else {
return "bar"; // not this either
}
},
onAccept: function() { ...
}
}
);
|