summaryrefslogtreecommitdiffstats
path: root/src/render/frontend/qrenderattachment.cpp
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2015-01-28 08:31:29 +0100
committerSean Harmer <sean.harmer@kdab.com>2015-02-08 11:15:35 +0000
commitbfc4432f4deccb6b1287e4cc0d4aa8e34ea810c1 (patch)
tree62031b56bb903796df11f84a6df8215effe9ea8c /src/render/frontend/qrenderattachment.cpp
parentf49cabe35cbd89bd4e5a0e91100a96afdb5d8401 (diff)
QTexture renamed to QAbstractTextureProvider
This is done prior to the whole texture API refactoring. Doc was also added, might need improvement later on but a base is present at least. Change-Id: I75589f14dfbfba7bc4250b2e0960670e020ed38a Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/render/frontend/qrenderattachment.cpp')
-rw-r--r--src/render/frontend/qrenderattachment.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/render/frontend/qrenderattachment.cpp b/src/render/frontend/qrenderattachment.cpp
index 1e3898e7b..8940069ca 100644
--- a/src/render/frontend/qrenderattachment.cpp
+++ b/src/render/frontend/qrenderattachment.cpp
@@ -62,7 +62,7 @@ void QRenderAttachment::copy(const QNode *ref)
QNode::copy(ref);
const QRenderAttachment *rA = static_cast<const QRenderAttachment*>(ref);
d_func()->m_type = rA->d_func()->m_type;
- setTexture(qobject_cast<QTexture *>(QNode::clone(rA->d_func()->m_texture)));
+ setTexture(qobject_cast<QAbstractTextureProvider *>(QNode::clone(rA->d_func()->m_texture)));
}
QRenderAttachment::QRenderAttachment(QNode *parent)
@@ -90,7 +90,7 @@ QRenderAttachment::RenderAttachmentType QRenderAttachment::type() const
return d->m_type;
}
-void QRenderAttachment::setTexture(QTexture *texture)
+void QRenderAttachment::setTexture(QAbstractTextureProvider *texture)
{
Q_D(QRenderAttachment);
if (texture != d->m_texture) {
@@ -103,7 +103,7 @@ void QRenderAttachment::setTexture(QTexture *texture)
}
}
-QTexture *QRenderAttachment::texture() const
+QAbstractTextureProvider *QRenderAttachment::texture() const
{
Q_D(const QRenderAttachment);
return d->m_texture;