summaryrefslogtreecommitdiff
path: root/doc/src/snippets/declarative/integrating-javascript
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src/snippets/declarative/integrating-javascript')
-rw-r--r--doc/src/snippets/declarative/integrating-javascript/connectjs.qml2
-rw-r--r--doc/src/snippets/declarative/integrating-javascript/includejs/app.qml2
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/snippets/declarative/integrating-javascript/connectjs.qml b/doc/src/snippets/declarative/integrating-javascript/connectjs.qml
index c58633ea01..c6c9ff469b 100644
--- a/doc/src/snippets/declarative/integrating-javascript/connectjs.qml
+++ b/doc/src/snippets/declarative/integrating-javascript/connectjs.qml
@@ -38,7 +38,7 @@
**
****************************************************************************/
//![0]
-import QtQuick 1.0
+import QtQuick 2.0
import "script.js" as MyScript
Item {
diff --git a/doc/src/snippets/declarative/integrating-javascript/includejs/app.qml b/doc/src/snippets/declarative/integrating-javascript/includejs/app.qml
index 8a9462861c..937475d085 100644
--- a/doc/src/snippets/declarative/integrating-javascript/includejs/app.qml
+++ b/doc/src/snippets/declarative/integrating-javascript/includejs/app.qml
@@ -38,7 +38,7 @@
**
****************************************************************************/
//![0]
-import QtQuick 1.0
+import QtQuick 2.0
import "script.js" as MyScript
Item {