Commit 871a097d authored by Kai Koehne's avatar Kai Koehne
Browse files

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: default avatarShawn Rutledge <shawn.rutledge@qt.io>
Showing with 3 additions and 0 deletions
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment