Ubuntu Pastebin

Paste from cimi at Tue, 22 Mar 2016 10:51:43 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
=== modified file 'plugins/Dash/CardCreator.js'
--- plugins/Dash/CardCreator.js	2016-03-21 16:06:10 +0000
+++ plugins/Dash/CardCreator.js	2016-03-22 10:51:17 +0000
@@ -459,6 +459,7 @@
     var isAudio = template["quick-preview-type"] === "audio";
     var asynchronous = isCardTool ? "false" : "true";
 
+if (!isCardTool)  code +='onTitleChanged: console.log("UCD inside card", JSON.stringify(cardData)); \n';
     code += 'signal action(var actionId);\n';
     if (isAudio) {
         // For now we only support audio cards with [optional] art, title, subtitle
@@ -940,6 +941,7 @@
                    import Utils 0.1;\n';
     var card = cardString(template, components, isCardTool);
     var code = imports + 'Component {\n' + card + '}\n';
+    if (!isCardTool) console.log(code)
 
     try {
         return Qt.createQmlObject(code, parent, identifier);
Download as text