diff options
author | Kai Koehne <kai.koehne@qt.io> | 2018-08-30 17:49:42 +0200 |
---|---|---|
committer | Kai Koehne <kai.koehne@qt.io> | 2018-09-06 12:21:01 +0000 |
commit | 871a097d0c6e8203f82b398e21dcfd8151bdae27 (patch) | |
tree | adabf47aee29c29c457c9a17f16985f53e7cbd3d | |
parent | efc5c237bbc5fd305c304eeabb8df1d90ac85e77 (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.
Change-Id: Ib14052fdf2a4cfa7b71f739fe00ce9a95dadb0a0
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
-rw-r--r-- | src/imports/multimedia/multimedia.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/imports/multimedia/multimedia.cpp b/src/imports/multimedia/multimedia.cpp index 113e67bfa..e63eecc49 100644 --- a/src/imports/multimedia/multimedia.cpp +++ b/src/imports/multimedia/multimedia.cpp @@ -156,6 +156,9 @@ public: qmlRegisterType<QDeclarativeMediaMetaData>(); qmlRegisterType<QAbstractVideoFilter>(); + + // Auto-increment the import to stay in sync with ALL future QtQuick minor versions from 5.11 onward + qmlRegisterModule(uri, 5, QT_VERSION_MINOR); } void initializeEngine(QQmlEngine *engine, const char *uri) override |