summaryrefslogtreecommitdiffstats
path: root/doc/src/declarative/focus.qdoc
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-11-25 06:28:38 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-11-25 06:28:38 (GMT)
commitb74e226c09bc37043a06b24029e0e22e4f3cdd16 (patch)
tree11bd335cd176eac754c5ea5af8ae41cec74d22c0 /doc/src/declarative/focus.qdoc
parent1c9dcb09b79d77bc7d4958e1393437597892bb0b (diff)
downloadQt-b74e226c09bc37043a06b24029e0e22e4f3cdd16.zip
Qt-b74e226c09bc37043a06b24029e0e22e4f3cdd16.tar.gz
Qt-b74e226c09bc37043a06b24029e0e22e4f3cdd16.tar.bz2
Small doc fixes.
Diffstat (limited to 'doc/src/declarative/focus.qdoc')
-rw-r--r--doc/src/declarative/focus.qdoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/declarative/focus.qdoc b/doc/src/declarative/focus.qdoc
index 924f590..46bfc38 100644
--- a/doc/src/declarative/focus.qdoc
+++ b/doc/src/declarative/focus.qdoc
@@ -67,7 +67,7 @@ item and thus subsequently be \l {QEvent::ignore()}{ignored}.
\code
Item {
Item {
- Keys.onPressed: if (event.key == Qt.Key_A) { print('Key A was pressed'); event.accepted = true }
+ Keys.onPressed: if (event.key == Qt.Key_A) { console.log('Key A was pressed'); event.accepted = true }
Rectangle {}
}
}
@@ -307,7 +307,7 @@ Rectangle {
Text {
focus: true
text: name
- Keys.onReturnPressed: print(name)
+ Keys.onReturnPressed: console.log(name)
}
}
}