aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/util/qquickimageprovider.cpp
diff options
context:
space:
mode:
authorMatthew Vogt <matthew.vogt@nokia.com>2012-03-21 17:55:07 +1000
committerQt by Nokia <qt-info@nokia.com>2012-03-21 09:41:49 +0100
commit392b078c78b265ee636e57fca01eebd69f262985 (patch)
tree2000ae954837f15dd8fabbd669577417e7551898 /src/quick/util/qquickimageprovider.cpp
parentab1e510121c8a679fdaca12ccd30e0f7ac12a26b (diff)
Provide imageType() from QQmlImageProviderBase
Clients who are only interested in the type of image data provided by an image provider should not need to cast the base pointer to a QQuickImageProvider to access this information. Also make the QQmlImageProviderBase constructor private to prevent unwanted inheritance; all implementors should use the QQuickImageProvider class. Change-Id: Ia2dd2595c2711fa7df47265c9857f45ef0f4cc41 Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
Diffstat (limited to 'src/quick/util/qquickimageprovider.cpp')
-rw-r--r--src/quick/util/qquickimageprovider.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/quick/util/qquickimageprovider.cpp b/src/quick/util/qquickimageprovider.cpp
index a5d2720cea..1d838cac32 100644
--- a/src/quick/util/qquickimageprovider.cpp
+++ b/src/quick/util/qquickimageprovider.cpp
@@ -222,19 +222,6 @@ QImage QQuickTextureFactory::image() const
*/
/*!
- \enum QQuickImageProvider::ImageType
-
- Defines the type of image supported by this image provider.
-
- \value Image The Image Provider provides QImage images. The
- requestImage() method will be called for all image requests.
- \value Pixmap The Image Provider provides QPixmap images. The
- requestPixmap() method will be called for all image requests.
- \value Texture The Image Provider provides QSGTextureProvider based images.
- The requestTexture() method will be called for all image requests. \omitvalue
-*/
-
-/*!
Creates an image provider that will provide images of the given \a type.
*/
QQuickImageProvider::QQuickImageProvider(ImageType type)