summaryrefslogtreecommitdiff
path: root/tests/qml/data/grouping.html
diff options
context:
space:
mode:
authorMilian Wolff <milian.wolff@kdab.com>2014-02-05 16:03:20 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-21 15:03:34 +0100
commite3e4d6a18d63537459f0e616360e53e816927f76 (patch)
treec52e2d7d402dd1cea731065a673301821e5a72d7 /tests/qml/data/grouping.html
parent3a85e592c050e73e61dc54d22e133bcf08d2f3c5 (diff)
downloadqtwebchannel-e3e4d6a18d63537459f0e616360e53e816927f76.tar.gz
Use an enum for message types instead of strings.
This further reduces the network traffic and thus leads to a small performance boost. Personally, I also think this code is a bit nicer to read and grasp. Change-Id: I943c621142e9982f0e52d24e3a0976428856541b Reviewed-by: Simon Hausmann <simon.hausmann@digia.com> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Diffstat (limited to 'tests/qml/data/grouping.html')
-rw-r--r--tests/qml/data/grouping.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qml/data/grouping.html b/tests/qml/data/grouping.html
index 60fa0f8..f2d7aec 100644
--- a/tests/qml/data/grouping.html
+++ b/tests/qml/data/grouping.html
@@ -5,7 +5,7 @@
<script type="text/javascript">
//BEGIN SETUP
window.channel = createWebChannel(function(channel) {
- channel.subscribe("Qt.propertyUpdate", function() {
+ channel.subscribe(QWebChannelMessageTypes.propertyUpdate, function() {
channel.exec({label: "gotPropertyUpdate", values: [myObj.myProperty(), myOtherObj.foo(), myOtherObj.bar()]});
});
});