@@ -33,32 +33,6 @@ Item {
33 signalName: "sendUserReview"
33 signalName: "sendUserReview"
36− function get_actions() {
37− var a1 = new Object();
39− a1.displayName = "action1";
40− var a2 = new Object();
42− a2.displayName = "action2";
43− var a3 = new Object();
45− a3.displayName = "action3";
50− function get_infomap() {
52− "more-screenshots": screenshots,
62 property string commentary: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus a mi vitae augue rhoncus lobortis ut rutrum metus. Curabitur tortor leo, tristique sed mollis quis, condimentum venenatis nibh.";
36 property string commentary: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus a mi vitae augue rhoncus lobortis ut rutrum metus. Curabitur tortor leo, tristique sed mollis quis, condimentum venenatis nibh.";
63 QtObject { id: screenshots; property var value: ["fake_image1.png", "fake_image2.png", "fake_image3.png"] }
37 QtObject { id: screenshots; property var value: ["fake_image1.png", "fake_image2.png", "fake_image3.png"] }
64 QtObject { id: rating; property int value: 8 }
38 QtObject { id: rating; property int value: 8 }
@@ -78,8 +52,18 @@ Item {
78 property string appIcon: "fake_image.png"
52 property string appIcon: "fake_image.png"
79 property string description: "This is an Application description"
53 property string description: "This is an Application description"
80 property var execute: root.fake_call
54 property var execute: root.fake_call
81− property var infoMap: get_infomap()
55+ property var infoMap: {
56+ "more-screenshots": screenshots,
82− property var actions: get_actions()
62+ property var actions: [
63+ { "id": 123, "displayName": "action1" },
64+ { "id": 456, "displayName": "action2" },
65+ { "id": 789, "displayName": "action3" },
85 function fake_call(id, data){
69 function fake_call(id, data){
@@ -115,7 +99,7 @@ Item {
115 buttons.currentItem.clicked();
99 buttons.currentItem.clicked();
118− var actions = get_actions();
102+ var actions = data.actions;
119 for(var i = 0; i < actions.length; i++) {
103 for(var i = 0; i < actions.length; i++) {
120 compare(root.calls[i], actions[i].id, "Id of action not found.");
104 compare(root.calls[i], actions[i].id, "Id of action not found.");