summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/qml')
-rw-r--r--src/declarative/qml/qmlcomponent.cpp4
-rw-r--r--src/declarative/qml/qmlscript.cpp4
-rw-r--r--src/declarative/qml/qmlscriptstring.cpp4
3 files changed, 6 insertions, 6 deletions
diff --git a/src/declarative/qml/qmlcomponent.cpp b/src/declarative/qml/qmlcomponent.cpp
index 7f8836a..5f8b816 100644
--- a/src/declarative/qml/qmlcomponent.cpp
+++ b/src/declarative/qml/qmlcomponent.cpp
@@ -112,9 +112,9 @@ Item {
\qml
Rectangle {
- Component.onCompleted: print("Completed Running!")
+ Component.onCompleted: console.log("Completed Running!")
Rectangle {
- Component.onCompleted: print("Nested Completed Running!")
+ Component.onCompleted: console.log("Nested Completed Running!")
}
}
\endqml
diff --git a/src/declarative/qml/qmlscript.cpp b/src/declarative/qml/qmlscript.cpp
index eb0b858..ba62898 100644
--- a/src/declarative/qml/qmlscript.cpp
+++ b/src/declarative/qml/qmlscript.cpp
@@ -54,8 +54,8 @@
\qml
Script {
function debugMyComponent() {
- print(text.text);
- print(otherinterestingitem.property);
+ console.log(text.text);
+ console.log(otherinterestingitem.property);
}
}
MouseRegion { onClicked: debugMyComponent() }
diff --git a/src/declarative/qml/qmlscriptstring.cpp b/src/declarative/qml/qmlscriptstring.cpp
index 6f669d5..1ccad53 100644
--- a/src/declarative/qml/qmlscriptstring.cpp
+++ b/src/declarative/qml/qmlscriptstring.cpp
@@ -60,12 +60,12 @@ public:
The QmlScriptString is used by properties that want to accept a script "assignment" from QML.
Normally, the following code would result in a binding being established for the \c script
-property. If the property had a type of QmlScriptString, the script - \e {print(1921)} - itself
+property. If the property had a type of QmlScriptString, the script - \e {console.log(1921)} - itself
would be passed to the property and it could choose how to handle it.
\code
MyType {
- script: print(1921)
+ script: console.log(1921)
}
\endcode
*/