summaryrefslogtreecommitdiffstats
path: root/examples/declarative/focusscope
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2009-11-23 04:27:13 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2009-11-23 04:27:13 (GMT)
commit62b51f36c41fdef46b785d8f3a9443c016a9263a (patch)
treefb6878c5036de4d76a5a19011b9531ef5949a437 /examples/declarative/focusscope
parent3c4df26a8d184b728395c8aad26b05626176b7b5 (diff)
downloadQt-62b51f36c41fdef46b785d8f3a9443c016a9263a.zip
Qt-62b51f36c41fdef46b785d8f3a9443c016a9263a.tar.gz
Qt-62b51f36c41fdef46b785d8f3a9443c016a9263a.tar.bz2
Use console.log, not print
Diffstat (limited to 'examples/declarative/focusscope')
-rw-r--r--examples/declarative/focusscope/test.qml10
-rw-r--r--examples/declarative/focusscope/test3.qml4
-rw-r--r--examples/declarative/focusscope/test4.qml10
3 files changed, 12 insertions, 12 deletions
diff --git a/examples/declarative/focusscope/test.qml b/examples/declarative/focusscope/test.qml
index ab5a143..e4332e7 100644
--- a/examples/declarative/focusscope/test.qml
+++ b/examples/declarative/focusscope/test.qml
@@ -5,13 +5,13 @@ Rectangle {
width: 800
height: 600
- Keys.onDigit9Pressed: print("Error - Root")
+ Keys.onDigit9Pressed: console.log("Error - Root")
FocusScope {
id: myScope
focus: true
- Keys.onDigit9Pressed: print("Error - FocusScope")
+ Keys.onDigit9Pressed: console.log("Error - FocusScope")
Rectangle {
height: 120
@@ -27,7 +27,7 @@ Rectangle {
width: 100; height: 100; color: "green"
border.width: 5
border.color: wantsFocus?"blue":"black"
- Keys.onDigit9Pressed: print("Top Left");
+ Keys.onDigit9Pressed: console.log("Top Left");
KeyNavigation.right: item2
focus: true
@@ -44,7 +44,7 @@ Rectangle {
border.width: 5
border.color: wantsFocus?"blue":"black"
KeyNavigation.left: item1
- Keys.onDigit9Pressed: print("Top Right");
+ Keys.onDigit9Pressed: console.log("Top Right");
Rectangle {
width: 50; height: 50; anchors.centerIn: parent
@@ -64,7 +64,7 @@ Rectangle {
border.width: 5
border.color: wantsFocus?"blue":"black"
- Keys.onDigit9Pressed: print("Bottom Left");
+ Keys.onDigit9Pressed: console.log("Bottom Left");
KeyNavigation.up: myScope
Rectangle {
diff --git a/examples/declarative/focusscope/test3.qml b/examples/declarative/focusscope/test3.qml
index 1b3181b..9344d07 100644
--- a/examples/declarative/focusscope/test3.qml
+++ b/examples/declarative/focusscope/test3.qml
@@ -23,10 +23,10 @@ Rectangle {
FocusScope {
id: root
width: 50; height: 50;
- Keys.onDigit9Pressed: print("Error - " + name)
+ Keys.onDigit9Pressed: console.log("Error - " + name)
Rectangle {
focus: true
- Keys.onDigit9Pressed: print(name)
+ Keys.onDigit9Pressed: console.log(name)
width: 50; height: 50;
color: root.ListView.isCurrentItem?"red":"green"
Text { text: name; anchors.centerIn: parent }
diff --git a/examples/declarative/focusscope/test4.qml b/examples/declarative/focusscope/test4.qml
index 5d4fe35..cc96df9 100644
--- a/examples/declarative/focusscope/test4.qml
+++ b/examples/declarative/focusscope/test4.qml
@@ -5,12 +5,12 @@ Rectangle {
width: 800
height: 600
- Keys.onDigit9Pressed: print("Error - Root")
+ Keys.onDigit9Pressed: console.log("Error - Root")
FocusScope {
id: myScope
- Keys.onDigit9Pressed: print("Error - FocusScope")
+ Keys.onDigit9Pressed: console.log("Error - FocusScope")
Rectangle {
height: 120
@@ -26,7 +26,7 @@ Rectangle {
width: 100; height: 100; color: "green"
border.width: 5
border.color: wantsFocus?"blue":"black"
- Keys.onDigit9Pressed: print("Error - Top Left");
+ Keys.onDigit9Pressed: console.log("Error - Top Left");
KeyNavigation.right: item2
focus: true
@@ -43,7 +43,7 @@ Rectangle {
border.width: 5
border.color: wantsFocus?"blue":"black"
KeyNavigation.left: item1
- Keys.onDigit9Pressed: print("Error - Top Right");
+ Keys.onDigit9Pressed: console.log("Error - Top Right");
Rectangle {
width: 50; height: 50; anchors.centerIn: parent
@@ -63,7 +63,7 @@ Rectangle {
border.width: 5
border.color: wantsFocus?"blue":"black"
- Keys.onDigit9Pressed: print("Error - Bottom Left");
+ Keys.onDigit9Pressed: console.log("Error - Bottom Left");
KeyNavigation.up: myScope
Rectangle {