(private-) export of QSGShaderEffectSource.
authorjuhvu <qt-info@nokia.com>
Mon, 3 Oct 2011 06:06:24 +0000 (16:06 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 4 Oct 2011 06:20:25 +0000 (08:20 +0200)
QtLocation maps need to be able to render standard QML elements as
Map items (for example a convenience store logo and text). Prior to
Qt5 this was achieved with Qt graphics view framework.

Only really private symbol used, in addition to inheriting a class from
QSGShaderEffectSource, is textureProvider(). It is used to access
texture IDs, which can then be used to map textures to map item
geometries.

Change-Id: Ifc6cf1d20b11493738c77b3bde9972a8cb1c70ce
Reviewed-on: http://codereview.qt-project.org/5912
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>

src/declarative/items/qsgshadereffectsource_p.h

index 6662412..0921c76 100644 (file)
@@ -152,7 +152,7 @@ private:
     uint m_grab : 1;
 };
 
-class QSGShaderEffectSource : public QSGItem
+class Q_DECLARATIVE_EXPORT QSGShaderEffectSource : public QSGItem
 {
     Q_OBJECT
     Q_PROPERTY(WrapMode wrapMode READ wrapMode WRITE setWrapMode NOTIFY wrapModeChanged)