summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMilian Wolff <milian.wolff@kdab.com>2013-01-18 14:35:25 +0100
committerPierre Rossi <pierre.rossi@gmail.com>2013-11-01 13:57:41 +0100
commit1d6ea39378671f7cd057ccb78f890380aafa2d5a (patch)
treea504e27920bd2bcc54b31faeb08468f50f8d339e /examples
parent1750df648f0ffb52d42c9295fd5cee1e3b45d0af (diff)
downloadqtwebchannel-1d6ea39378671f7cd057ccb78f890380aafa2d5a.tar.gz
Make the qmlapp example work with newer Qt5
Change-Id: I759262c77c5f659e8c2d390c9fc154fac5da221d Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/qmlapp/qmlapp.qml8
1 files changed, 3 insertions, 5 deletions
diff --git a/examples/qmlapp/qmlapp.qml b/examples/qmlapp/qmlapp.qml
index f59fd71..f82973e 100644
--- a/examples/qmlapp/qmlapp.qml
+++ b/examples/qmlapp/qmlapp.qml
@@ -39,9 +39,10 @@
**
****************************************************************************/
-import QtQuick 1.0
+import QtQuick 2.0
+
import Qt.labs.WebChannel 1.0
-import QtWebKit 1.0
+import QtWebKit 3.0
Rectangle {
width: 1000
@@ -67,9 +68,6 @@ Rectangle {
anchors.top: txt.bottom
height: 2000
width: 2000
- onAlert: {
- console.log(message);
- }
}
TextEdit {