diff options
author | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2019-04-17 12:51:56 +0200 |
---|---|---|
committer | Aapo Keskimolo <aapo.keskimolo@qt.io> | 2019-05-01 13:55:14 +0000 |
commit | 8b69d52db792c3910be53321df44b5c57baa694c (patch) | |
tree | 33be8894a55a6a673b69f8b29edea8556e566100 /src/imports | |
parent | 475910a75a5cd3332fe2f0e5740c4c3c2c0b8987 (diff) |
Make QtWayland.Compositor available under 1.QT_MINOR_VERSION
It was already available under 1.13, but this ensures it will stay
available for future minor versions of Qt and also use the latest minor
version in the examples.
Fixes: QTBUG-74042
Change-Id: I4a6a4f762ed0af565af32931971a1df7f33a3ba1
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'src/imports')
-rw-r--r-- | src/imports/compositor/qwaylandquickcompositorplugin.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/imports/compositor/qwaylandquickcompositorplugin.cpp b/src/imports/compositor/qwaylandquickcompositorplugin.cpp index df7536ed1..c7553d932 100644 --- a/src/imports/compositor/qwaylandquickcompositorplugin.cpp +++ b/src/imports/compositor/qwaylandquickcompositorplugin.cpp @@ -130,6 +130,10 @@ public: static void defineModule(const char *uri) { + // This is needed so to guarantee that the import is available with the current + // Qt minor version even if no new types have been added since the last release. + qmlRegisterModule(uri, 1, QT_VERSION_MINOR); + qmlRegisterType<QWaylandQuickCompositorQuickExtensionContainer>(uri, 1, 0, "WaylandCompositor"); qmlRegisterType<QWaylandQuickItem>(uri, 1, 0, "WaylandQuickItem"); qmlRegisterType<QWaylandQuickItem, 13>(uri, 1, 13, "WaylandQuickItem"); |