summaryrefslogtreecommitdiffstats
path: root/src/render/renderstates/qdepthtest.cpp
diff options
context:
space:
mode:
authorRobert Brock <robert.brock@kdab.com>2016-02-25 15:10:58 +0000
committerRobert Brock <robert.brock@kdab.com>2016-02-26 10:41:38 +0000
commit50e51c827b6cf22e8387631833add6af01d51843 (patch)
tree2440a7ef659446d7287ef44df71415a1dc3a31b7 /src/render/renderstates/qdepthtest.cpp
parent7e2f9d42eebe13182918d832577c4f5ed96ab87b (diff)
QDepthTest rename func to depthFunction
As per API review Change-Id: Iea3cbdb16618b248e221817000b71822a588bf6a Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/render/renderstates/qdepthtest.cpp')
-rw-r--r--src/render/renderstates/qdepthtest.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/render/renderstates/qdepthtest.cpp b/src/render/renderstates/qdepthtest.cpp
index 52178c02a..283c751c2 100644
--- a/src/render/renderstates/qdepthtest.cpp
+++ b/src/render/renderstates/qdepthtest.cpp
@@ -54,19 +54,19 @@ class QDepthTestPrivate : public QRenderStatePrivate
public :
QDepthTestPrivate()
: QRenderStatePrivate(QRenderState::DepthTest)
- , m_func(QDepthTest::Never)
+ , m_depthFunction(QDepthTest::Never)
{
}
Q_DECLARE_PUBLIC(QDepthTest)
- QDepthTest::DepthFunc m_func;
+ QDepthTest::DepthFunction m_depthFunction;
};
void QDepthTest::copy(const QNode *ref)
{
QRenderState::copy(ref);
const QDepthTest *refState = static_cast<const QDepthTest*>(ref);
- d_func()->m_func = refState->d_func()->m_func;
+ d_func()->m_depthFunction = refState->d_func()->m_depthFunction;
}
QDepthTest::QDepthTest(QNode *parent)
@@ -79,18 +79,18 @@ QDepthTest::~QDepthTest()
QNode::cleanup();
}
-QDepthTest::DepthFunc QDepthTest::func() const
+QDepthTest::DepthFunction QDepthTest::depthFunction() const
{
Q_D(const QDepthTest);
- return d->m_func;
+ return d->m_depthFunction;
}
-void QDepthTest::setFunc(QDepthTest::DepthFunc func)
+void QDepthTest::setDepthFunction(QDepthTest::DepthFunction depthFunction)
{
Q_D(QDepthTest);
- if (d->m_func != func) {
- d->m_func = func;
- emit funcChanged(func);
+ if (d->m_depthFunction != depthFunction) {
+ d->m_depthFunction = depthFunction;
+ emit depthFunctionChanged(depthFunction);
}
}