summaryrefslogtreecommitdiffstats
path: root/src/quick3d/imports/extras/qt3dquick3dextrasplugin.cpp
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@qt.io>2018-08-31 14:23:08 +0200
committerKai Koehne <kai.koehne@qt.io>2018-09-06 12:21:09 +0000
commited7e50c8518f8d385b22a8f587d860f7d49d1ecc (patch)
treebfa1888e496d6cf003e847f421656dff28231d83 /src/quick3d/imports/extras/qt3dquick3dextrasplugin.cpp
parent4828923558a12737a7ca8b31d64b665897f2405c (diff)
Automatically register the latest import version
This follows what was done in d28c9f6a for Qt Quick Controls 2. The latest import version (e.g. 2.11 in Qt 5.11) will automatically be registered whenever the Qt version is bumped. This avoids needing to wait until a new type is added (or a new revision is added to an existing type) before being able to use the newest Qt Quick version. Task-number: QTBUG-70290 Change-Id: Id221b5879f8c50a20fe5e26f9e141b82e4a196cb Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/quick3d/imports/extras/qt3dquick3dextrasplugin.cpp')
-rw-r--r--src/quick3d/imports/extras/qt3dquick3dextrasplugin.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/quick3d/imports/extras/qt3dquick3dextrasplugin.cpp b/src/quick3d/imports/extras/qt3dquick3dextrasplugin.cpp
index 9a3e76923..a4ced963a 100644
--- a/src/quick3d/imports/extras/qt3dquick3dextrasplugin.cpp
+++ b/src/quick3d/imports/extras/qt3dquick3dextrasplugin.cpp
@@ -141,6 +141,9 @@ void Qt3DQuick3DExtrasPlugin::registerTypes(const char *uri)
qmlRegisterType<Qt3DExtras::QExtrudedTextMesh>(uri, 2, 9, "ExtrudedTextMesh");
qmlRegisterType<Qt3DExtras::QText2DEntity>(uri, 2, 9, "Text2DEntity");
+
+ // Auto-increment the import to stay in sync with ALL future Qt minor versions
+ qmlRegisterModule(uri, 2, QT_VERSION_MINOR);
}