aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/webchannel/plugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/webchannel/plugin.cpp')
-rw-r--r--src/imports/webchannel/plugin.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/imports/webchannel/plugin.cpp b/src/imports/webchannel/plugin.cpp
index 1abf648..b6d4018 100644
--- a/src/imports/webchannel/plugin.cpp
+++ b/src/imports/webchannel/plugin.cpp
@@ -60,6 +60,9 @@ void QWebChannelPlugin::registerTypes(const char *uri)
int major = 1;
int minor = 0;
qmlRegisterType<QQmlWebChannel>(uri, major, minor, "WebChannel");
+
+ // Auto-increment the import to stay in sync with ALL future QtQuick minor versions
+ qmlRegisterModule(uri, major, QT_VERSION_MINOR);
}
QT_END_NAMESPACE