summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorkh <karsten.heimrich@theqtcompany.com>2015-03-06 12:12:07 +0100
committerKarsten Heimrich <karsten.heimrich@theqtcompany.com>2015-03-16 13:14:40 +0000
commit45b05a4a4a9cd04a58279089b69ed23e83f82b70 (patch)
tree2cb6efceea252fb8b05fc03b7624565687c247c0 /examples
parent7c5724bb5fdc94c3a9474b2b3a79a33dab64277c (diff)
Remove references to QtScript print, use console.log instead.
Change-Id: If83b08f6a27ac9c07980dd83a56b1500f22b13ef Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/componenterror/packages/root/meta/installscript.js2
-rw-r--r--examples/openreadme/packages/or.qtproject.ifw.example.openreadme/meta/installscript.qs4
-rw-r--r--examples/translations/packages/com.vendor.product/meta/installscript.qs2
-rw-r--r--examples/tutorial/packages/com.vendor.product/meta/installscript.qs8
4 files changed, 8 insertions, 8 deletions
diff --git a/examples/componenterror/packages/root/meta/installscript.js b/examples/componenterror/packages/root/meta/installscript.js
index 211b07ba4..552d7e257 100644
--- a/examples/componenterror/packages/root/meta/installscript.js
+++ b/examples/componenterror/packages/root/meta/installscript.js
@@ -49,7 +49,7 @@ function abortInstaller()
// ignore the first empty one
for (var i = 0; i < error_list.length; ++i) {
if (error_list[i] !== "") {
- print(error_list[i]);
+ console.log(error_list[i]);
abortText += "<li>" + error_list[i] + "</li>"
}
}
diff --git a/examples/openreadme/packages/or.qtproject.ifw.example.openreadme/meta/installscript.qs b/examples/openreadme/packages/or.qtproject.ifw.example.openreadme/meta/installscript.qs
index 6f33f1e71..e815cd28a 100644
--- a/examples/openreadme/packages/or.qtproject.ifw.example.openreadme/meta/installscript.qs
+++ b/examples/openreadme/packages/or.qtproject.ifw.example.openreadme/meta/installscript.qs
@@ -50,7 +50,7 @@ Component.prototype.installationFinishedPageIsShown = function()
installer.addWizardPageItem( component, "ReadMeCheckBoxForm", QInstaller.InstallationFinished );
}
} catch(e) {
- print(e);
+ console.log(e);
}
}
@@ -64,7 +64,7 @@ Component.prototype.installationFinished = function()
}
}
} catch(e) {
- print(e);
+ console.log(e);
}
}
diff --git a/examples/translations/packages/com.vendor.product/meta/installscript.qs b/examples/translations/packages/com.vendor.product/meta/installscript.qs
index dcfb17515..7e3ae8c52 100644
--- a/examples/translations/packages/com.vendor.product/meta/installscript.qs
+++ b/examples/translations/packages/com.vendor.product/meta/installscript.qs
@@ -45,7 +45,7 @@ Component.prototype.createOperations = function()
// call the base create operations function
component.createOperations();
} catch (e) {
- print(e);
+ console.log(e);
}
}
diff --git a/examples/tutorial/packages/com.vendor.product/meta/installscript.qs b/examples/tutorial/packages/com.vendor.product/meta/installscript.qs
index d9054833e..670f19f17 100644
--- a/examples/tutorial/packages/com.vendor.product/meta/installscript.qs
+++ b/examples/tutorial/packages/com.vendor.product/meta/installscript.qs
@@ -37,7 +37,7 @@ function Component()
// constructor
component.loaded.connect(this, Component.prototype.loaded);
if (!installer.addWizardPage(component, "Page", QInstaller.TargetDirectory))
- print("Could not add the dynamic page.");
+ console.log("Could not add the dynamic page.");
}
Component.prototype.isDefault = function()
@@ -52,7 +52,7 @@ Component.prototype.createOperations = function()
// call the base create operations function
component.createOperations();
} catch (e) {
- print(e);
+ console.log(e);
}
}
@@ -60,7 +60,7 @@ Component.prototype.loaded = function ()
{
var page = gui.pageByObjectName("DynamicPage");
if (page != null) {
- print("Connecting the dynamic page entered signal.");
+ console.log("Connecting the dynamic page entered signal.");
page.entered.connect(Component.prototype.dynamicPageEntered);
}
}
@@ -69,7 +69,7 @@ Component.prototype.dynamicPageEntered = function ()
{
var pageWidget = gui.pageWidgetByObjectName("DynamicPage");
if (pageWidget != null) {
- print("Setting the widgets label text.")
+ console.log("Setting the widgets label text.")
pageWidget.m_pageLabel.text = "This is a dynamically created page.";
}
}