The Qml Designer needs this image because every item in the text file is
rendered in an external process in an image and send over a socket to the
main process.
Change-Id: I73cbc798d783098d3e1937181259c227b008082e
Reviewed-on: http://codereview.qt.nokia.com/3509
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
markDirtyTexture(); // Continuously update if 'live' and 'recursive'.
}
+QImage QSGShaderEffectTexture::toImage() const
+{
+ if (m_fbo)
+ return m_fbo->toImage();
+
+ return QImage();
+}
+
/*!
\qmlclass ShaderEffectSource QSGShaderEffectSource
\since 5.0
void scheduleUpdate();
+ QImage toImage() const;
+
Q_SIGNALS:
void textureChanged();