diff options
author | Nico Vertriest <nico.vertriest@qt.io> | 2020-04-21 08:51:47 +0200 |
---|---|---|
committer | Nico Vertriest <nico.vertriest@qt.io> | 2020-04-23 06:35:55 +0200 |
commit | 65f57369cf847da4e5a6924f7ad348466da070df (patch) | |
tree | b638398362029ee364ee89a9569970a7c2245d0a | |
parent | 5b18f91795536e5de6db982423e2f3a43d3b5779 (diff) |
Doc: AnimatedImage incompatible with QQuickImageProvider
- specify the incompatibility in AnimatedImage documentation
- remove unwanted references to AnimatedImage in QQuickImageprovider documentation
Task-number: QTBUG-83489
Change-Id: I6f72dde6b19983ff24d08330690d06c65356ccf5
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
-rw-r--r-- | src/quick/items/qquickanimatedimage.cpp | 7 | ||||
-rw-r--r-- | src/quick/util/qquickimageprovider.cpp | 10 |
2 files changed, 8 insertions, 9 deletions
diff --git a/src/quick/items/qquickanimatedimage.cpp b/src/quick/items/qquickanimatedimage.cpp index 192ed289e2..eb3385c8f8 100644 --- a/src/quick/items/qquickanimatedimage.cpp +++ b/src/quick/items/qquickanimatedimage.cpp @@ -129,10 +129,9 @@ QQuickPixmap* QQuickAnimatedImagePrivate::infoForCurrentFrame(QQmlEngine *engine This property holds the URL that refers to the source image. - AnimatedImage can handle any image format supported by Qt, loaded from any - URL scheme supported by Qt. - - \sa QQuickImageProvider + AnimatedImage can handle any image format supported by Qt, loaded + from any URL scheme supported by Qt. It is however not compatible + with QQuickImageProvider. */ QQuickAnimatedImage::QQuickAnimatedImage(QQuickItem *parent) diff --git a/src/quick/util/qquickimageprovider.cpp b/src/quick/util/qquickimageprovider.cpp index 80873e2ad5..b885f0406a 100644 --- a/src/quick/util/qquickimageprovider.cpp +++ b/src/quick/util/qquickimageprovider.cpp @@ -301,7 +301,7 @@ void QQuickImageResponse::cancel() Image providers that support QImage or Texture loading automatically include support for asychronous loading of images. To enable asynchronous loading for an image source, set the \c asynchronous property to \c true for the relevant - \l Image, \l BorderImage or \l AnimatedImage object. When this is enabled, + \l Image or \l BorderImage object. When this is enabled, the image request to the provider is run in a low priority thread, allowing image loading to be executed in the background, and reducing the performance impact on the user interface. @@ -330,10 +330,10 @@ void QQuickImageResponse::cancel() Images returned by a QQuickImageProvider are automatically cached, similar to any image loaded by the QML engine. When an image with a "image://" prefix is loaded from cache, requestImage() and requestPixmap() - will not be called for the relevant image provider. If an image should always - be fetched from the image provider, and should not be cached at all, set the - \c cache property to \c false for the relevant \l Image, \l BorderImage or - \l AnimatedImage object. + will not be called for the relevant image provider. If an image should + always be fetched from the image provider, and should not be cached at + all, set the \c cache property to \c false for the relevant \l Image + or \l BorderImage object. \sa QQmlEngine::addImageProvider() */ |