diff options
-rw-r--r-- | src/imports/winextras/plugin.cpp | 1 | ||||
-rw-r--r-- | src/imports/winextras/winextras.pro | 2 | ||||
-rw-r--r-- | src/winextras/doc/src/qtwinextras-module-qml.qdoc | 9 |
3 files changed, 10 insertions, 2 deletions
diff --git a/src/imports/winextras/plugin.cpp b/src/imports/winextras/plugin.cpp index a2009b0..f53cdf7 100644 --- a/src/imports/winextras/plugin.cpp +++ b/src/imports/winextras/plugin.cpp @@ -61,6 +61,7 @@ public: void registerTypes(const char *uri) Q_DECL_OVERRIDE { Q_ASSERT(uri == QLatin1String("QtWinExtras")); + qmlRegisterModule(uri, 1, QT_VERSION_MINOR); qmlRegisterUncreatableType<QQuickWin>(uri, 1, 0, "QtWin", "Cannot create an instance of the QtWin namespace."); qmlRegisterType<QQuickDwmFeatures>(uri, 1, 0, "DwmFeatures"); qmlRegisterType<QQuickTaskbarButton>(uri, 1, 0, "TaskbarButton"); diff --git a/src/imports/winextras/winextras.pro b/src/imports/winextras/winextras.pro index 19f8d2b..35427ba 100644 --- a/src/imports/winextras/winextras.pro +++ b/src/imports/winextras/winextras.pro @@ -1,7 +1,7 @@ CXX_MODULE = qml TARGET = qml_winextras TARGETPATH = QtWinExtras -IMPORT_VERSION = 1.0 +IMPORT_VERSION = 1.$$QT_MINOR_VERSION QT += qml quick winextras winextras-private diff --git a/src/winextras/doc/src/qtwinextras-module-qml.qdoc b/src/winextras/doc/src/qtwinextras-module-qml.qdoc index 078cb44..62797ef 100644 --- a/src/winextras/doc/src/qtwinextras-module-qml.qdoc +++ b/src/winextras/doc/src/qtwinextras-module-qml.qdoc @@ -26,10 +26,17 @@ ****************************************************************************/ /*! - \qmlmodule QtWinExtras 1.0 + \qmlmodule QtWinExtras 1.\QtMinorVersion \title Qt Windows Extras QML Types \ingroup qmlmodules \brief Enables the use of Windows features with QML. \section1 QML Types + + The QML types can be imported into your application using the + following import statement in your .qml file. + + \qml \QtMinorVersion + import QtWinExtras 1.\1 + \endqml */ |