aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@sletta.org>2014-08-23 15:27:51 +0200
committerGunnar Sletta <gunnar@sletta.org>2014-08-26 06:13:40 +0200
commit916ced089f37d96ca8ef1cdb938791247bd44b72 (patch)
tree61f9225945298a8ae893a04acf72c99f00708abc /src/quick/scenegraph
parent695a9605c6575eafe535c2dbfe94ad3e7697a5a8 (diff)
Make QQuickPaintedItem a texture provider.
Change-Id: I605dc35fcc2284a890851c41946cf95537e92d2e Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'src/quick/scenegraph')
-rw-r--r--src/quick/scenegraph/util/qsgpainternode_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quick/scenegraph/util/qsgpainternode_p.h b/src/quick/scenegraph/util/qsgpainternode_p.h
index 230527a10f..15ba2625f0 100644
--- a/src/quick/scenegraph/util/qsgpainternode_p.h
+++ b/src/quick/scenegraph/util/qsgpainternode_p.h
@@ -99,6 +99,8 @@ public:
void paint();
+ QSGTexture *texture() const { return m_texture; }
+
private:
void updateTexture();
void updateGeometry();