Provide imageType() from QQmlImageProviderBase
authorMatthew Vogt <matthew.vogt@nokia.com>
Wed, 21 Mar 2012 07:55:07 +0000 (17:55 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 21 Mar 2012 08:41:49 +0000 (09:41 +0100)
commit392b078c78b265ee636e57fca01eebd69f262985
tree2000ae954837f15dd8fabbd669577417e7551898
parentab1e510121c8a679fdaca12ccd30e0f7ac12a26b
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>
src/qml/qml/qqmlengine.cpp
src/qml/qml/qqmlengine.h
src/quick/util/qquickimageprovider.cpp
src/quick/util/qquickimageprovider.h