diff --git a/doc/src/qml/qtbinding.qdoc b/doc/src/qml/qtbinding.qdoc index b480d1292ff0877ef8e17c560bd8056eac567c42..d8dd66bded5a4db050631717619daaeed67fe0b5 100644 --- a/doc/src/qml/qtbinding.qdoc +++ b/doc/src/qml/qtbinding.qdoc @@ -43,7 +43,7 @@ You may want to mix QML and C++ for a number of reasons. For example: \li To use functionality defined in a C++ source (for example, when using a C++ Qt-based data model, or calling functions in a third-party C++ library) \li To access functionality in the Qt Declarative module (for example, to dynamically generate -images using QQmlImageProvider) +images using QQuickImageProvider) \li To write your own QML elements (whether for your applications, or for distribution to others) \endlist diff --git a/examples/qml/cppextensions/imageprovider/imageprovider.cpp b/examples/qml/cppextensions/imageprovider/imageprovider.cpp index f6632a89e8a34f2978948e2914f7e9f86d5921be..d60057e83aff275684e351ce8b6526b952b1bfcb 100644 --- a/examples/qml/cppextensions/imageprovider/imageprovider.cpp +++ b/examples/qml/cppextensions/imageprovider/imageprovider.cpp @@ -42,16 +42,16 @@ #include <qqmlextensionplugin.h> #include <qqmlengine.h> -#include <qqmlimageprovider.h> +#include <qquickimageprovider.h> #include <QImage> #include <QPainter> //![0] -class ColorImageProvider : public QQmlImageProvider +class ColorImageProvider : public QQuickImageProvider { public: ColorImageProvider() - : QQmlImageProvider(QQmlImageProvider::Pixmap) + : QQuickImageProvider(QQuickImageProvider::Pixmap) { } diff --git a/examples/qml/cppextensions/imageprovider/imageprovider.pro b/examples/qml/cppextensions/imageprovider/imageprovider.pro index b4a832b7209af866801a8d7a374311f59ac3b153..e85bad986611d3a49ecb482530212826de72c0fe 100644 --- a/examples/qml/cppextensions/imageprovider/imageprovider.pro +++ b/examples/qml/cppextensions/imageprovider/imageprovider.pro @@ -1,6 +1,6 @@ TEMPLATE = lib CONFIG += qt plugin -QT += qml +QT += qml quick DESTDIR = ImageProviderCore TARGET = qmlimageproviderplugin diff --git a/modules/qt_declarative.pri b/modules/qt_declarative.pri index 619f562f49e6ff14dc7fdbade10f1926fc328145..d6827ab8aba15bb67527ff2644263fd6d7613ce9 100644 --- a/modules/qt_declarative.pri +++ b/modules/qt_declarative.pri @@ -85,7 +85,7 @@ QT.declarative.DEFINES = \ QDeclarativeFontLoader=QQuickFontLoader\ QDeclarativeFontValueType=QQmlFontValueType\ QDeclarativeGuard=QQmlGuard\ - QDeclarativeImageProvider=QQmlImageProvider\ + QDeclarativeImageProvider=QQuickImageProvider\ QDeclarativeImports=QQmlImports\ QDeclarativeIncubationController=QQmlIncubationController\ QDeclarativeIncubator=QQmlIncubator\ diff --git a/modules/qt_qml.pri b/modules/qt_qml.pri index 82e70e3e93199cbf2a5542b059f998ebc9788c94..3a6318e37f48974c83554e87d5db632badebebe1 100644 --- a/modules/qt_qml.pri +++ b/modules/qt_qml.pri @@ -12,6 +12,6 @@ QT.qml.libs = $$QT_MODULE_LIB_BASE QT.qml.plugins = $$QT_MODULE_PLUGIN_BASE QT.qml.imports = $$QT_MODULE_IMPORT_BASE QT.qml.depends = gui network xmlpatterns -QT.qml.DEFINES = QT_QML_LIB +QT.qml.DEFINES = QT_QML_LIB QQmlImageProvider=QQuickImageProvider QT_CONFIG += qml diff --git a/src/quick/items/qquickanimatedimage.cpp b/src/quick/items/qquickanimatedimage.cpp index 6567892fb422d04c9b1eaa55b6c1d67825ae9d7c..9319cf12525501c70056d6235423223e7a2437de 100644 --- a/src/quick/items/qquickanimatedimage.cpp +++ b/src/quick/items/qquickanimatedimage.cpp @@ -95,7 +95,7 @@ QT_BEGIN_NAMESPACE AnimatedImage can handle any image format supported by Qt, loaded from any URL scheme supported by Qt. - \sa QQmlImageProvider + \sa QQuickImageProvider */ /*! diff --git a/src/quick/items/qquickborderimage.cpp b/src/quick/items/qquickborderimage.cpp index 71514593a3d178ce695be83f31fcc325f7040eb3..b99a2f4cae95d8e313f706152363507876b66149 100644 --- a/src/quick/items/qquickborderimage.cpp +++ b/src/quick/items/qquickborderimage.cpp @@ -257,7 +257,7 @@ QQuickBorderImage::~QQuickBorderImage() The URL may be absolute, or relative to the URL of the component. - \sa QQmlImageProvider + \sa QQuickImageProvider */ /*! diff --git a/src/quick/items/qquickimage.cpp b/src/quick/items/qquickimage.cpp index 2346689178879d64a719bd612fc5390d16c528a7..64c8ba1e5560e39794695f10dd37c96b24edd8a5 100644 --- a/src/quick/items/qquickimage.cpp +++ b/src/quick/items/qquickimage.cpp @@ -147,7 +147,7 @@ QQuickImagePrivate::QQuickImagePrivate() size bounded via the \l sourceSize property. This is especially important for content that is loaded from external sources or provided by the user. - \sa {declarative/imageelements/image}{Image example}, QQmlImageProvider + \sa {declarative/imageelements/image}{Image example}, QQuickImageProvider */ QQuickImage::QQuickImage(QQuickItem *parent) @@ -431,7 +431,7 @@ qreal QQuickImage::paintedHeight() const The URL may be absolute, or relative to the URL of the component. - \sa QQmlImageProvider + \sa QQuickImageProvider */ /*! diff --git a/sync.profile b/sync.profile index 7c7e1a5507f5e77473be0e80f51b3790d7eaf370..e03ca08883f3c3c10bb20a0b483a5ef1b16bbb96 100644 --- a/sync.profile +++ b/sync.profile @@ -48,8 +48,8 @@ "qdeclarativeextensioninterface.h" => "QtQml/qqmlextensioninterface.h", "QDeclarativeExtensionPlugin" => "QtQml/QQmlExtensionPlugin", "qdeclarativeextensionplugin.h" => "QtQml/qqmlextensionplugin.h", - "QDeclarativeImageProvider" => "QtQml/QQmlImageProvider", - "qdeclarativeimageprovider.h" => "QtQml/qqmlimageprovider.h", + "QDeclarativeImageProvider" => "QtQuick/QQuickImageProvider", + "qdeclarativeimageprovider.h" => "QtQuick/qquickimageprovider.h", "QDeclarativeIncubationController" => "QtQml/QQmlIncubationController", "QDeclarativeIncubator" => "QtQml/QQmlIncubator", "qdeclarativeincubator.h" => "QtQml/qqmlincubator.h", @@ -208,6 +208,10 @@ "qv8worker_p.h" => "QtQml/private/qv8worker_p.h", "textwriter_p.h" => "QtQml/private/textwriter_p.h", }, + "QtQml" => { + "QQmlImageProvider" => "QtQuick/QQuickImageProvider", + "qqmlimageprovider.h" => "QtQuick/qquickimageprovider.h", + }, ); # Module dependencies. # Every module that is required to build this module should have one entry.