summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomi Korpipaa <tomi.korpipaa@qt.io>2020-02-20 12:17:57 +0200
committerTomi Korpipaa <tomi.korpipaa@qt.io>2020-02-21 08:38:23 +0200
commit15eac67f957cd8ab94b85c0239596eb152a3ebfb (patch)
tree895f736de079f16719f5f43ea015dbce012b6753
parent84cf9a4f3343df8a646a07bc445c2417b87c945d (diff)
Register runtime versions
Fixes: QT3DS-4068 Change-Id: I561413bd24a1401e36373aa88399ddf95c6af623 Reviewed-by: Antti Määttä <antti.maatta@qt.io>
-rw-r--r--src/api/studio3dqml/q3dsplugin.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/api/studio3dqml/q3dsplugin.cpp b/src/api/studio3dqml/q3dsplugin.cpp
index 8a01141..f481ed3 100644
--- a/src/api/studio3dqml/q3dsplugin.cpp
+++ b/src/api/studio3dqml/q3dsplugin.cpp
@@ -40,6 +40,7 @@
#include "q3dsqmlsubpresentationsettings.h"
#include "q3dssceneelement.h"
#include "q3dsdatainput.h"
+#include "qtstudio3dversion.h"
QT_BEGIN_NAMESPACE
@@ -62,6 +63,9 @@ void Q3DSPlugin::registerTypes(const char *uri)
qmlRegisterType<Q3DSStudio3D, 1>(uri, 2, 5, "Studio3D");
qmlRegisterType<Q3DSViewerSettings, 1>(uri, 2, 5, "ViewerSettings");
qmlRegisterType<Q3DSPresentationItem, 1>(uri, 2, 5, "Presentation");
+
+ // Automatically register the latest version
+ qmlRegisterModule(uri, ((QTSTUDIO3D_VERSION >> 16) & 0xff), ((QTSTUDIO3D_VERSION >> 8) & 0xff));
}
QT_END_NAMESPACE