diff options
Diffstat (limited to 'src/imports/window/plugin.cpp')
-rw-r--r-- | src/imports/window/plugin.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/imports/window/plugin.cpp b/src/imports/window/plugin.cpp index 4e6eedf326..907eecb060 100644 --- a/src/imports/window/plugin.cpp +++ b/src/imports/window/plugin.cpp @@ -51,7 +51,7 @@ static void initResources() QT_BEGIN_NAMESPACE /*! - \qmlmodule QtQuick.Window 2.2 + \qmlmodule QtQuick.Window 2.11 \title Qt Quick Window QML Types \ingroup qmlmodules \brief Provides QML types for window management @@ -61,7 +61,7 @@ QT_BEGIN_NAMESPACE To use the types in this module, import the module with the following line: \code - import QtQuick.Window 2.2 + import QtQuick.Window 2.11 \endcode */ @@ -78,6 +78,9 @@ public: Q_ASSERT(QLatin1String(uri) == QLatin1String("QtQuick.Window")); Q_UNUSED(uri); QQuickWindowModule::defineModule(); + + // Auto-increment the import to stay in sync with ALL future QtQuick minor versions from 5.11 onward + qmlRegisterModule(uri, 2, QT_VERSION_MINOR); } }; //![class decl] |