Fix the build & docs after QQmlImageProvider was renamed
authorKent Hansen <kent.hansen@nokia.com>
Thu, 15 Mar 2012 12:40:43 +0000 (13:40 +0100)
committerQt by Nokia <qt-info@nokia.com>
Mon, 19 Mar 2012 23:58:46 +0000 (00:58 +0100)
The class was renamed to QQuickImageProvider in commit
3bc907d155034fe64efc8cb6056b48f0c6401bfb.

Change-Id: I91ff38244cee3ab651ed6caa4140a58cb742f1c9
Reviewed-by: Martin Jones <martin.jones@nokia.com>
doc/src/qml/qtbinding.qdoc
examples/qml/cppextensions/imageprovider/imageprovider.cpp
examples/qml/cppextensions/imageprovider/imageprovider.pro
modules/qt_declarative.pri
modules/qt_qml.pri
src/quick/items/qquickanimatedimage.cpp
src/quick/items/qquickborderimage.cpp
src/quick/items/qquickimage.cpp
sync.profile

index b480d12..d8dd66b 100644 (file)
@@ -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
 
index f6632a8..d60057e 100644 (file)
 #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)
     {
     }
 
index b4a832b..e85bad9 100644 (file)
@@ -1,6 +1,6 @@
 TEMPLATE = lib
 CONFIG += qt plugin
-QT += qml
+QT += qml quick
 
 DESTDIR = ImageProviderCore
 TARGET  = qmlimageproviderplugin
index 619f562..d6827ab 100644 (file)
@@ -85,7 +85,7 @@ QT.declarative.DEFINES = \
     QDeclarativeFontLoader=QQuickFontLoader\
     QDeclarativeFontValueType=QQmlFontValueType\
     QDeclarativeGuard=QQmlGuard\
-    QDeclarativeImageProvider=QQmlImageProvider\
+    QDeclarativeImageProvider=QQuickImageProvider\
     QDeclarativeImports=QQmlImports\
     QDeclarativeIncubationController=QQmlIncubationController\
     QDeclarativeIncubator=QQmlIncubator\
index 82e70e3..3a6318e 100644 (file)
@@ -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
index 6567892..9319cf1 100644 (file)
@@ -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
 */
 
 /*!
index 7151459..b99a2f4 100644 (file)
@@ -257,7 +257,7 @@ QQuickBorderImage::~QQuickBorderImage()
 
     The URL may be absolute, or relative to the URL of the component.
 
-    \sa QQmlImageProvider
+    \sa QQuickImageProvider
 */
 
 /*!
index 2346689..64c8ba1 100644 (file)
@@ -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
 */
 
 /*!
index 7c7e1a5..e03ca08 100644 (file)
@@ -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",
         "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.